diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-04-28 12:06:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-28 12:06:40 +0000 |
commit | ce47d859f69f0d6b6053c832b636a97223f868a3 (patch) | |
tree | 99bfad5d1be197d616342cc1787c6fc09ef92aa7 /pkgs/applications/networking/p2p | |
parent | 6e14f9eaec7021b8cba625851bb53208d077e25a (diff) | |
parent | a0b098710bf74d8775dc8b2b237e310b2853032d (diff) | |
download | nixpkgs-ce47d859f69f0d6b6053c832b636a97223f868a3.tar nixpkgs-ce47d859f69f0d6b6053c832b636a97223f868a3.tar.gz nixpkgs-ce47d859f69f0d6b6053c832b636a97223f868a3.tar.bz2 nixpkgs-ce47d859f69f0d6b6053c832b636a97223f868a3.tar.lz nixpkgs-ce47d859f69f0d6b6053c832b636a97223f868a3.tar.xz nixpkgs-ce47d859f69f0d6b6053c832b636a97223f868a3.tar.zst nixpkgs-ce47d859f69f0d6b6053c832b636a97223f868a3.zip |
Merge staging-next into staging
Diffstat (limited to 'pkgs/applications/networking/p2p')
-rw-r--r-- | pkgs/applications/networking/p2p/mldonkey/default.nix | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/pkgs/applications/networking/p2p/mldonkey/default.nix b/pkgs/applications/networking/p2p/mldonkey/default.nix index 37bc1e372ac..41b8a7d0b6c 100644 --- a/pkgs/applications/networking/p2p/mldonkey/default.nix +++ b/pkgs/applications/networking/p2p/mldonkey/default.nix @@ -1,37 +1,31 @@ -{ lib, stdenv, fetchurl, ocamlPackages, zlib, bzip2, ncurses, file, gd, libpng, libjpeg }: +{ lib, stdenv, fetchurl, ocamlPackages, zlib }: -stdenv.mkDerivation ({ - name = "mldonkey-3.1.6"; +stdenv.mkDerivation rec { + pname = "mldonkey"; + version = "3.1.7-2"; src = fetchurl { - url = "https://github.com/ygrek/mldonkey/releases/download/release-3-1-6/mldonkey-3.1.6.tar.bz2"; - sha256 = "0g84islkj72ymp0zzppcj9n4r21h0vlghnq87hv2wg580mybadhv"; + url = "https://ygrek.org/p/release/mldonkey/mldonkey-${version}.tar.bz2"; + sha256 = "b926e7aa3de4b4525af73c88f1724d576b4add56ef070f025941dd51cb24a794"; }; - preConfigure = lib.optionalString (ocamlPackages.camlp4 != null) '' + preConfigure = '' substituteInPlace Makefile --replace '+camlp4' \ '${ocamlPackages.camlp4}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/camlp4' ''; - buildInputs = [ zlib ncurses bzip2 file gd libpng libjpeg ] ++ - (with ocamlPackages; [ ocaml camlp4 ]); - configureFlags = [ "--disable-gui" ]; + buildInputs = (with ocamlPackages; [ + ocaml + camlp4 + num + ]) ++ [ + zlib + ]; meta = { description = "Client for many p2p networks, with multiple frontends"; homepage = "http://mldonkey.sourceforge.net/"; - license = lib.licenses.gpl2; + license = lib.licenses.gpl2Only; platforms = lib.platforms.unix; }; -} // (if !ocamlPackages.ocaml.nativeCompilers then -{ - # Byte code compilation (the ocaml opt compiler is not supported in some platforms) - buildPhase = "make mlnet.byte"; - installPhase = '' - mkdir -p $out/bin - cp mlnet.byte $out/bin/mlnet - ''; - - # ocaml bytecode selfcontained binaries loose the bytecode if stripped - dontStrip = true; -} else {})) +} |