4b27d28701
This comes from: svn diff ^/nixpkgs/trunk/@18255 ^/nixpkgs/branches/stdenv-updates/ > diff patch -p0 < diff and then adding into svn all files new from the patch. trunk@18255 comes from the last time I updated stdenv-updates from trunk. svn path=/nixpkgs/stdenv-updates2/; revision=18272
29 lines
824 B
Nix
29 lines
824 B
Nix
{stdenv, fetchurl, ocaml, zlib, ncurses, gd, libpng}:
|
|
|
|
stdenv.mkDerivation {
|
|
name = "mldonkey-3.0.0";
|
|
|
|
src = fetchurl {
|
|
url = mirror://sourceforge/mldonkey/mldonkey-3.0.0.tar.bz2;
|
|
sha256 = "0zzvcfnbhxk8axfch5fbkd9j2ks67nbb1ndjjarxvrza78g5y8r7";
|
|
};
|
|
|
|
meta = {
|
|
description = "Client for many p2p networks, with multiple frontends";
|
|
homepage = http://mldonkey.sourceforge.net/;
|
|
};
|
|
|
|
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;
|
|
}
|