Merge pull request #161257 from Stunkymonkey/amule-appendToName

This commit is contained in:
Artturi 2022-02-21 23:26:44 +02:00 committed by GitHub
commit e78f089997
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 7 deletions

View File

@ -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"}"

View File

@ -63,6 +63,8 @@ mapAliases ({
amazon-glacier-cmd-interface = throw "amazon-glacier-cmd-interface has been removed due to it being unmaintained."; # Added 2020-10-30
aminal = throw "aminal was renamed to darktile."; # Added 2021-09-28
ammonite-repl = ammonite; # Added 2017-05-02
amuleDaemon = throw "amuleDaemon was renamed to amule-daemon."; # Added 2022-02-11
amuleGui = throw "amuleGui was renamed to amule-gui."; # Added 2022-02-11
amsn = throw "amsn has been removed due to being unmaintained."; # Added 2020-12-09
angelfish = libsForQt5.plasmaMobileGear.angelfish; # Added 2021-10-06
antimicro = throw "antimicro has been removed as it was broken, see antimicrox instead."; # Added 2020-08-06

View File

@ -1534,15 +1534,15 @@ with pkgs;
amule = callPackage ../tools/networking/p2p/amule { };
amuleDaemon = appendToName "daemon" (amule.override {
amule-daemon = amule.override {
monolithic = false;
enableDaemon = true;
});
};
amuleGui = appendToName "gui" (amule.override {
amule-gui = amule.override {
monolithic = false;
client = true;
});
};
antennas = nodePackages.antennas;