aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/compilers/mlton
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/compilers/mlton')
-rw-r--r--nixpkgs/pkgs/development/compilers/mlton/default.nix17
-rw-r--r--nixpkgs/pkgs/development/compilers/mlton/from-git-source.nix4
2 files changed, 10 insertions, 11 deletions
diff --git a/nixpkgs/pkgs/development/compilers/mlton/default.nix b/nixpkgs/pkgs/development/compilers/mlton/default.nix
index aaf58885140..e4381774781 100644
--- a/nixpkgs/pkgs/development/compilers/mlton/default.nix
+++ b/nixpkgs/pkgs/development/compilers/mlton/default.nix
@@ -1,26 +1,21 @@
-{ stdenv, fetchurl, fetchgit, patchelf, gmp }:
+{ callPackage }:
+
rec {
- mlton20130715 = import ./20130715.nix {
- inherit stdenv fetchurl patchelf gmp;
- };
+ mlton20130715 = callPackage ./20130715.nix {};
- mlton20180207Binary = import ./20180207-binary.nix {
- inherit stdenv fetchurl patchelf gmp;
- };
+ mlton20180207Binary = callPackage ./20180207-binary.nix {};
- mlton20180207 = import ./from-git-source.nix {
+ mlton20180207 = callPackage ./from-git-source.nix {
mltonBootstrap = mlton20180207Binary;
version = "20180207";
rev = "on-20180207-release";
sha256 = "00rdd2di5x1dzac64il9z05m3fdzicjd3226wwjyynv631jj3q2a";
- inherit stdenv fetchgit gmp;
};
- mltonHEAD = import ./from-git-source.nix {
+ mltonHEAD = callPackage ./from-git-source.nix {
mltonBootstrap = mlton20180207Binary;
version = "HEAD";
rev = "e149c9917cfbfe6aba5c986a958ed76d5cc6cfde";
sha256 = "0a0j1i0f0fxw2my1309srq5j3vz0kawrrln01gxms2m5hy5dl50d";
- inherit stdenv fetchgit gmp;
};
}
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}"