nixpkgs-suyu/pkgs/applications/networking/p2p/mldonkey/default.nix
sternenseemann 19916afe1d mldonkey: remove byte code support
nativeCompilers is only false in very rare cases (only on mips), so it's
really hard to test and maintain this code path. If someone else is able
to do that, they should readd this feature.
2021-04-28 08:06:41 +02:00

31 lines
784 B
Nix

{ lib, stdenv, fetchurl, ocamlPackages, zlib }:
stdenv.mkDerivation rec {
pname = "mldonkey";
version = "3.1.7-2";
src = fetchurl {
url = "https://ygrek.org/p/release/mldonkey/mldonkey-${version}.tar.bz2";
sha256 = "b926e7aa3de4b4525af73c88f1724d576b4add56ef070f025941dd51cb24a794";
};
preConfigure = ''
substituteInPlace Makefile --replace '+camlp4' \
'${ocamlPackages.camlp4}/lib/ocaml/${ocamlPackages.ocaml.version}/site-lib/camlp4'
'';
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.gpl2Only;
platforms = lib.platforms.unix;
};
}