Skip to content

Commit

Permalink
treewide: replace daemon with enableDaemon
Browse files Browse the repository at this point in the history
broken with the introducation of "daemon" in

NixOS@96ffba1
  • Loading branch information
matthewbauer committed Sep 23, 2019
1 parent 067b4db commit ad22b90
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions pkgs/applications/networking/irc/quassel/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ monolithic ? true # build monolithic Quassel
, daemon ? false # build Quassel daemon
, enableDaemon ? false # build Quassel daemon
, client ? false # build Quassel client
, tag ? "-kf5" # tag added to the package name
, static ? false # link statically
Expand All @@ -21,11 +21,11 @@

let
buildClient = monolithic || client;
buildCore = monolithic || daemon;
buildCore = monolithic || enableDaemon;
in

assert monolithic -> !client && !daemon;
assert client || daemon -> !monolithic;
assert monolithic -> !client && !enableDaemon;
assert client || enableDaemon -> !monolithic;
assert !buildClient -> !withKDE; # KDE is used by the client only

let
Expand Down Expand Up @@ -63,12 +63,12 @@ in with stdenv; mkDerivation rec {
]
++ edf static "STATIC"
++ edf monolithic "WANT_MONO"
++ edf daemon "WANT_CORE"
++ edf enableDaemon "WANT_CORE"
++ edf client "WANT_QTCLIENT"
++ edf withKDE "WITH_KDE";

preFixup =
lib.optionalString daemon ''
lib.optionalString enableDaemon ''
wrapProgram "$out/bin/quasselcore" --suffix PATH : "${qtbase.bin}/bin"
'' +
lib.optionalString buildClient ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/networking/p2p/amule/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ monolithic ? true # build monolithic amule
, daemon ? false # build amule daemon
, enableDaemon ? false # build amule daemon
, httpServer ? false # build web interface for the daemon
, client ? false # build amule remote gui
, fetchurl, stdenv, zlib, wxGTK, perl, cryptopp, libupnp, gettext, libpng ? null
Expand Down Expand Up @@ -32,7 +32,7 @@ mkDerivation rec {
"--disable-debug"
"--enable-optimize"
(stdenv.lib.enableFeature monolithic "monolithic")
(stdenv.lib.enableFeature daemon "amule-daemon")
(stdenv.lib.enableFeature enableDaemon "amule-daemon")
(stdenv.lib.enableFeature client "amule-gui")
(stdenv.lib.enableFeature httpServer "webserver")
];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ in

amuleDaemon = appendToName "daemon" (amule.override {
monolithic = false;
daemon = true;
enableDaemon = true;
});

amuleGui = appendToName "gui" (amule.override {
Expand Down Expand Up @@ -20192,7 +20192,7 @@ in

quasselDaemon = quassel.override {
monolithic = false;
daemon = true;
enableDaemon = true;
withKDE = false;
tag = "-daemon-qt5";
};
Expand Down

0 comments on commit ad22b90

Please sign in to comment.