From 19916afe1d3f68fe9d35637c84b9363ef2493f1b Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Mon, 26 Apr 2021 21:07:47 +0200 Subject: [PATCH] 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. --- .../networking/p2p/mldonkey/default.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pkgs/applications/networking/p2p/mldonkey/default.nix b/pkgs/applications/networking/p2p/mldonkey/default.nix index 10eafcc7ffa..41b8a7d0b6c 100644 --- a/pkgs/applications/networking/p2p/mldonkey/default.nix +++ b/pkgs/applications/networking/p2p/mldonkey/default.nix @@ -1,6 +1,6 @@ { 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 {})) +}