2021-04-26 20:05:41 +01:00
|
|
|
{ lib, stdenv, fetchurl, ocamlPackages, zlib }:
|
2009-01-04 17:35:11 +00:00
|
|
|
|
2021-04-26 20:07:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2021-04-26 20:05:41 +01:00
|
|
|
pname = "mldonkey";
|
|
|
|
version = "3.1.7-2";
|
2016-08-02 17:19:16 +01:00
|
|
|
|
2009-01-04 17:35:11 +00:00
|
|
|
src = fetchurl {
|
2021-04-26 20:05:41 +01:00
|
|
|
url = "https://ygrek.org/p/release/mldonkey/mldonkey-${version}.tar.bz2";
|
|
|
|
sha256 = "b926e7aa3de4b4525af73c88f1724d576b4add56ef070f025941dd51cb24a794";
|
2009-01-04 17:35:11 +00:00
|
|
|
};
|
2016-08-02 17:19:16 +01:00
|
|
|
|
2021-04-26 20:05:41 +01:00
|
|
|
preConfigure = ''
|
2017-07-08 14:21:42 +01:00
|
|
|
substituteInPlace Makefile --replace '+camlp4' \
|
|
|
|
'${ocamlPackages.camlp4}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/camlp4'
|
|
|
|
'';
|
|
|
|
|
2021-04-26 20:05:41 +01:00
|
|
|
buildInputs = (with ocamlPackages; [
|
|
|
|
ocaml
|
|
|
|
camlp4
|
|
|
|
num
|
|
|
|
]) ++ [
|
|
|
|
zlib
|
|
|
|
];
|
2016-08-02 17:19:16 +01:00
|
|
|
|
2009-01-04 17:35:11 +00:00
|
|
|
meta = {
|
|
|
|
description = "Client for many p2p networks, with multiple frontends";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://mldonkey.sourceforge.net/";
|
2021-04-26 20:05:41 +01:00
|
|
|
license = lib.licenses.gpl2Only;
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2009-01-04 17:35:11 +00:00
|
|
|
};
|
2021-04-26 20:07:47 +01:00
|
|
|
}
|