2010-01-16 16:41:33 +00:00
|
|
|
{stdenv, fetchurl, ocaml, zlib, bzip2, ncurses, file, gd, libpng }:
|
2009-01-04 17:35:11 +00:00
|
|
|
|
2010-01-16 16:41:33 +00:00
|
|
|
stdenv.mkDerivation (rec {
|
|
|
|
name = "mldonkey-3.0.1";
|
2009-01-04 17:35:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2010-01-16 16:41:33 +00:00
|
|
|
url = "mirror://sourceforge/mldonkey/${name}.tar.bz2";
|
|
|
|
sha256 = "09zk53rfdkjipf5sl37rypzi2mx0a5v57vsndj22zajkqr4l0zds";
|
2009-01-04 17:35:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Client for many p2p networks, with multiple frontends";
|
|
|
|
homepage = http://mldonkey.sourceforge.net/;
|
|
|
|
};
|
|
|
|
|
2010-01-16 16:41:33 +00: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 00:32:12 +00: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 16:41:33 +00:00
|
|
|
} else {}))
|