nixpkgs/pkgs/applications/networking/p2p/mldonkey/default.nix

29 lines
824 B
Nix
Raw Normal View History

{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;
}