Skip to content

Commit 3a227e6

Browse files
committedJul 8, 2017
mldonkey: 3.1.5 -> 3.1.6
1 parent 4a3e1d8 commit 3a227e6

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed
 

‎pkgs/applications/networking/p2p/mldonkey/default.nix

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,20 @@
1-
{stdenv, fetchurl, ocaml, zlib, bzip2, ncurses, file, gd, libpng, libjpeg }:
1+
{ stdenv, fetchurl, ocamlPackages, zlib, bzip2, ncurses, file, gd, libpng, libjpeg }:
22

33
stdenv.mkDerivation (rec {
4-
name = "mldonkey-3.1.5";
4+
name = "mldonkey-3.1.6";
55

66
src = fetchurl {
7-
url = "mirror://sourceforge/mldonkey/${name}.tar.bz2";
8-
sha256 = "1jqik6b09p27ckssppfiqpph7alxbgpnf9w1s0lalmi3qyyd9ybl";
7+
url = https://github.com/ygrek/mldonkey/releases/download/release-3-1-6/mldonkey-3.1.6.tar.bz2;
8+
sha256 = "0g84islkj72ymp0zzppcj9n4r21h0vlghnq87hv2wg580mybadhv";
99
};
1010

11-
buildInputs = [ ocaml zlib ncurses bzip2 file gd libpng libjpeg ];
11+
preConfigure = stdenv.lib.optionalString (ocamlPackages.camlp4 != null) ''
12+
substituteInPlace Makefile --replace '+camlp4' \
13+
'${ocamlPackages.camlp4}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/camlp4'
14+
'';
15+
16+
buildInputs = [ zlib ncurses bzip2 file gd libpng libjpeg ] ++
17+
(with ocamlPackages; [ ocaml camlp4 ]);
1218
configureFlags = [ "--disable-gui" ];
1319

1420
meta = {
@@ -17,7 +23,7 @@ stdenv.mkDerivation (rec {
1723
license = stdenv.lib.licenses.gpl2;
1824
platforms = stdenv.lib.platforms.unix;
1925
};
20-
} // (if !ocaml.nativeCompilers then
26+
} // (if !ocamlPackages.ocaml.nativeCompilers then
2127
{
2228
# Byte code compilation (the ocaml opt compiler is not supported in some platforms)
2329
buildPhase = "make mlnet.byte";

‎pkgs/top-level/all-packages.nix

+1-3
Original file line numberDiff line numberDiff line change
@@ -15063,9 +15063,7 @@ with pkgs;
1506315063

1506415064
mjpg-streamer = callPackage ../applications/video/mjpg-streamer { };
1506515065

15066-
mldonkey = callPackage ../applications/networking/p2p/mldonkey {
15067-
ocaml = ocamlPackages_4_01_0.ocaml;
15068-
};
15066+
mldonkey = callPackage ../applications/networking/p2p/mldonkey { };
1506915067

1507015068
MMA = callPackage ../applications/audio/MMA { };
1507115069

0 commit comments

Comments
 (0)
Please sign in to comment.