mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
19916afe1d
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.
32 lines
784 B
Nix
32 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;
|
|
};
|
|
}
|