aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/compilers/mlton/from-git-source.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/mlton/from-git-source.nix')
-rw-r--r--nixpkgs/pkgs/development/compilers/mlton/from-git-source.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/compilers/mlton/from-git-source.nix b/nixpkgs/pkgs/development/compilers/mlton/from-git-source.nix
index 2585b599caf..ec0b96bbf23 100644
--- a/nixpkgs/pkgs/development/compilers/mlton/from-git-source.nix
+++ b/nixpkgs/pkgs/development/compilers/mlton/from-git-source.nix
@@ -6,6 +6,7 @@
, sha256
, stdenv
, version
+, which
}:
stdenv.mkDerivation {
@@ -16,10 +17,13 @@ stdenv.mkDerivation {
inherit url rev sha256;
};
+ nativeBuildInputs = [ which ];
+
buildInputs = [mltonBootstrap gmp];
preBuild = ''
find . -type f | grep -v -e '\.tgz''$' | xargs sed -i "s@/usr/bin/env bash@$(type -p bash)@"
+ sed -i "s|/tmp|$TMPDIR|" bin/regression
makeFlagsArray=(
MLTON_VERSION="${version} ${rev}"