2010-01-16 17:41:33 +01:00
|
|
|
{stdenv, fetchurl, ocaml, zlib, bzip2, ncurses, file, gd, libpng }:
|
2009-01-04 18:35:11 +01:00
|
|
|
|
2010-01-16 17:41:33 +01:00
|
|
|
stdenv.mkDerivation (rec {
|
2010-10-03 11:18:31 +02:00
|
|
|
name = "mldonkey-3.0.4";
|
2009-01-04 18:35:11 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-01-16 17:41:33 +01:00
|
|
|
url = "mirror://sourceforge/mldonkey/${name}.tar.bz2";
|
2010-10-03 11:18:31 +02:00
|
|
|
sha256 = "0wnyi2m7126dq6r5zbqplgknnypzcx0p3q2mxcdfhp94ln7vn3f6";
|
2009-01-04 18:35:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Client for many p2p networks, with multiple frontends";
|
|
|
|
homepage = http://mldonkey.sourceforge.net/;
|
|
|
|
};
|
|
|
|
|
2010-10-03 11:18:31 +02:00
|
|
|
patches = [ ./gcc44mips64_2.patch ];
|
|
|
|
|
2010-01-16 17:41:33 +01:00
|
|
|
buildInputs = [ ocaml zlib ncurses bzip2 file gd libpng ];
|
|
|
|
configureFlags = [ "--disable-gui" ];
|
|
|
|
} // (if (stdenv.system != "i686-linux" && stdenv.system != "x86_64-linux") then
|
|
|
|
{
|
2009-11-08 01:32:12 +01:00
|
|
|
# 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;
|
2010-01-16 17:41:33 +01:00
|
|
|
} else {}))
|