2009-11-08 00:32:12 +00:00
|
|
|
{stdenv, fetchurl, ocaml, zlib, ncurses, gd, libpng}:
|
2009-01-04 17:35:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-05-17 20:34:04 +00:00
|
|
|
name = "mldonkey-3.0.0";
|
2009-01-04 17:35:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-05-17 20:34:04 +00:00
|
|
|
url = mirror://sourceforge/mldonkey/mldonkey-3.0.0.tar.bz2;
|
|
|
|
sha256 = "0zzvcfnbhxk8axfch5fbkd9j2ks67nbb1ndjjarxvrza78g5y8r7";
|
2009-01-04 17:35:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Client for many p2p networks, with multiple frontends";
|
|
|
|
homepage = http://mldonkey.sourceforge.net/;
|
|
|
|
};
|
|
|
|
|
2009-11-08 00:32:12 +00:00
|
|
|
buildInputs = [ ocaml zlib ncurses gd libpng ];
|
|
|
|
configureFlags = [ "--disable-gui" "--enable-ocamlver=3.11.1" ];
|
|
|
|
|
|
|
|
# Byte code compilation (the ocaml opt compiler is not supported in many platforms)
|
|
|
|
buildPhase = "make mlnet.byte";
|
|
|
|
installPhase = ''
|
|
|
|
ensureDir $out/bin
|
|
|
|
cp mlnet.byte $out/bin/mlnet
|
|
|
|
'';
|
|
|
|
|
|
|
|
# ocaml bytecode selfcontained binaries loose the bytecode if stripped
|
|
|
|
dontStrip = true;
|
2009-01-04 17:35:11 +00:00
|
|
|
}
|