1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-06 12:33:51 +00:00
nixpkgs/pkgs/applications/networking/p2p/mldonkey/default.nix

32 lines
784 B
Nix
Raw Normal View History

2021-04-26 20:05:41 +01:00
{ lib, stdenv, fetchurl, ocamlPackages, zlib }:
stdenv.mkDerivation rec {
2021-04-26 20:05:41 +01:00
pname = "mldonkey";
version = "3.1.7-2";
src = fetchurl {
2021-04-26 20:05:41 +01:00
url = "https://ygrek.org/p/release/mldonkey/mldonkey-${version}.tar.bz2";
sha256 = "b926e7aa3de4b4525af73c88f1724d576b4add56ef070f025941dd51cb24a794";
};
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
];
meta = {
description = "Client for many p2p networks, with multiple frontends";
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;
};
}