summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorFelix Buehler <account@buehler.rocks>2022-02-21 19:01:54 +0100
committerFelix Buehler <account@buehler.rocks>2022-02-21 19:07:47 +0100
commit9a5767cd5c147afab072d369e7ac3a73eadb79bf (patch)
treee187dfda74fa6cb738169619e4b4264510761b26 /pkgs/tools
parent71ecd7e1688f67a1970e8ee9fded31c2ece429d2 (diff)
amuleGui,amuleDaemon: remove appendToName to have a consistent package name for repology
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/networking/p2p/amule/default.nix16
1 files changed, 13 insertions, 3 deletions
diff --git a/pkgs/tools/networking/p2p/amule/default.nix b/pkgs/tools/networking/p2p/amule/default.nix
index c2e5f4568242f..fc389f2c4dc4a 100644
--- a/pkgs/tools/networking/p2p/amule/default.nix
+++ b/pkgs/tools/networking/p2p/amule/default.nix
@@ -20,8 +20,13 @@
 , libX11
 }:
 
+# daemon and client are not build monolithic
+assert monolithic || (!monolithic && (enableDaemon || client));
+
 stdenv.mkDerivation rec {
-  pname = "amule";
+  pname = "amule"
+    + lib.optionalString enableDaemon "-daemon"
+    + lib.optionalString client "-gui";
   version = "2.3.3";
 
   src = fetchFromGitHub {
@@ -34,9 +39,14 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ cmake gettext makeWrapper pkg-config ];
 
   buildInputs = [
-    zlib wxGTK30-gtk3 perl cryptopp.dev libupnp boost
+    zlib
+    wxGTK30-gtk3
+    perl
+    cryptopp.dev
+    libupnp
+    boost
   ] ++ lib.optional httpServer libpng
-    ++ lib.optional client libX11;
+  ++ lib.optional client libX11;
 
   cmakeFlags = [
     "-DBUILD_MONOLITHIC=${if monolithic then "ON" else "OFF"}"