diff --git a/pkgs/development/compilers/mlton/from-git-source.nix b/pkgs/development/compilers/mlton/from-git-source.nix index 6678335b4b9..3a3538a7ea4 100644 --- a/pkgs/development/compilers/mlton/from-git-source.nix +++ b/pkgs/development/compilers/mlton/from-git-source.nix @@ -18,6 +18,8 @@ stdenv.mkDerivation { buildInputs = [mltonBootstrap gmp]; preBuild = '' + find . -type f | grep -v -e '\.tgz''$' | xargs sed -i "s@/usr/bin/env bash@$(type -p bash)@" + makeFlagsArray=( MLTON_VERSION="${version} ${rev}" CC="$(type -p cc)"