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 {
|
2014-03-26 18:20:11 +01:00
|
|
|
name = "mldonkey-3.1.5";
|
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";
|
2014-03-26 18:20:11 +01:00
|
|
|
sha256 = "1jqik6b09p27ckssppfiqpph7alxbgpnf9w1s0lalmi3qyyd9ybl";
|
2009-01-04 18:35:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Client for many p2p networks, with multiple frontends";
|
|
|
|
homepage = http://mldonkey.sourceforge.net/;
|
2014-11-19 09:26:43 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2009-01-04 18:35:11 +01:00
|
|
|
};
|
|
|
|
|
2010-01-16 17:41:33 +01:00
|
|
|
buildInputs = [ ocaml zlib ncurses bzip2 file gd libpng ];
|
|
|
|
configureFlags = [ "--disable-gui" ];
|
2012-09-23 23:55:42 +02:00
|
|
|
} // (if !ocaml.nativeCompilers then
|
2010-01-16 17:41:33 +01:00
|
|
|
{
|
2012-09-23 23:55:42 +02:00
|
|
|
# Byte code compilation (the ocaml opt compiler is not supported in some platforms)
|
2009-11-08 01:32:12 +01:00
|
|
|
buildPhase = "make mlnet.byte";
|
|
|
|
installPhase = ''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2009-11-08 01:32:12 +01:00
|
|
|
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 {}))
|