mldonkey: 3.1.6 -> 3.1.7-2

This commit is contained in:
sternenseemann 2021-04-26 21:05:41 +02:00 committed by Vincent Laporte
parent e424c9118b
commit 88dbd594c8
2 changed files with 16 additions and 11 deletions

View file

@ -1,26 +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

View file

@ -24599,7 +24599,7 @@ in
mjpg-streamer = callPackage ../applications/video/mjpg-streamer { };
mldonkey = callPackage ../applications/networking/p2p/mldonkey {
ocamlPackages = ocaml-ng.ocamlPackages_4_05;
ocamlPackages = ocaml-ng.ocamlPackages_4_08;
};
MMA = callPackage ../applications/audio/MMA { };