diff --git a/pkgs/development/compilers/mlton/20210117-binary.nix b/pkgs/development/compilers/mlton/20210117-binary.nix index 523d46ed8c39..6efb8fb863d2 100644 --- a/pkgs/development/compilers/mlton/20210117-binary.nix +++ b/pkgs/development/compilers/mlton/20210117-binary.nix @@ -4,6 +4,7 @@ fetchpatch, fetchurl, patchelf, + bash, gmp, }: let @@ -41,8 +42,12 @@ stdenv.mkDerivation rec { }) ]; - buildInputs = [ gmp ]; + buildInputs = [ + bash + gmp + ]; nativeBuildInputs = lib.optional stdenv.hostPlatform.isLinux patchelf; + strictDeps = true; buildPhase = '' make update \ diff --git a/pkgs/development/compilers/mlton/from-git-source.nix b/pkgs/development/compilers/mlton/from-git-source.nix index 2a8d13722b86..922ff25c77a2 100644 --- a/pkgs/development/compilers/mlton/from-git-source.nix +++ b/pkgs/development/compilers/mlton/from-git-source.nix @@ -18,13 +18,15 @@ stdenv.mkDerivation { inherit url rev sha256; }; - nativeBuildInputs = [ which ]; - - buildInputs = [ + nativeBuildInputs = [ + which mltonBootstrap - gmp ]; + buildInputs = [ gmp ]; + + strictDeps = true; + # build fails otherwise enableParallelBuilding = false;