Commit 19916afe authored by sternenseemann's avatar sternenseemann Committed by Vincent Laporte
Browse files

mldonkey: remove byte code support

nativeCompilers is only false in very rare cases (only on mips), so it's
really hard to test and maintain this code path. If someone else is able
to do that, they should readd this feature.
parent 88dbd594
Loading
Loading
Loading
Loading
+2 −13
Original line number Diff line number Diff line
{ lib, stdenv, fetchurl, ocamlPackages, zlib }:

stdenv.mkDerivation (rec {
stdenv.mkDerivation rec {
  pname = "mldonkey";
  version = "3.1.7-2";

@@ -28,15 +28,4 @@ stdenv.mkDerivation (rec {
    license = lib.licenses.gpl2Only;
    platforms = lib.platforms.unix;
  };
} // (if !ocamlPackages.ocaml.nativeCompilers then
{
  # Byte code compilation (the ocaml opt compiler is not supported in some platforms)
  buildPhase = "make mlnet.byte";
  installPhase = ''
    mkdir -p $out/bin
    cp mlnet.byte $out/bin/mlnet
  '';

  # ocaml bytecode selfcontained binaries loose the bytecode if stripped
  dontStrip = true;
} else {}))
}