mlton: adds mlton version 20180207
This commit is contained in:
parent
30da2b5659
commit
a130228fe8
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchFromGitHub, patchelf, gmp }:
|
{ stdenv, fetchurl, fetchgit, patchelf, gmp }:
|
||||||
rec {
|
rec {
|
||||||
mlton20130715 = import ./20130715.nix {
|
mlton20130715 = import ./20130715.nix {
|
||||||
inherit stdenv fetchurl patchelf gmp;
|
inherit stdenv fetchurl patchelf gmp;
|
||||||
@ -7,4 +7,12 @@ rec {
|
|||||||
mlton20180207Binary = import ./20180207-binary.nix {
|
mlton20180207Binary = import ./20180207-binary.nix {
|
||||||
inherit stdenv fetchurl patchelf gmp;
|
inherit stdenv fetchurl patchelf gmp;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mlton20180207 = import ./from-git-source.nix {
|
||||||
|
mltonBootstrap = mlton20180207Binary;
|
||||||
|
version = "20180207";
|
||||||
|
rev = "on-20180207-release";
|
||||||
|
sha256 = "00rdd2di5x1dzac64il9z05m3fdzicjd3226wwjyynv631jj3q2a";
|
||||||
|
inherit stdenv fetchgit gmp;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
33
pkgs/development/compilers/mlton/from-git-source.nix
Normal file
33
pkgs/development/compilers/mlton/from-git-source.nix
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
{ fetchgit
|
||||||
|
, gmp
|
||||||
|
, mltonBootstrap
|
||||||
|
, url ? "https://github.com/mlton/mlton"
|
||||||
|
, rev
|
||||||
|
, sha256
|
||||||
|
, stdenv
|
||||||
|
, version
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "mlton-${version}";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
inherit url rev sha256;
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [mltonBootstrap gmp];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
makeFlagsArray=(
|
||||||
|
MLTON_VERSION="${version} ${rev}"
|
||||||
|
CC="$(type -p cc)"
|
||||||
|
PREFIX="$out"
|
||||||
|
WITH_GMP_INC_DIR="${gmp.dev}/include"
|
||||||
|
WITH_GMP_LIB_DIR="${gmp}/lib"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = import ./meta.nix;
|
||||||
|
}
|
@ -7164,7 +7164,8 @@ with pkgs;
|
|||||||
|
|
||||||
inherit (callPackage ../development/compilers/mlton {})
|
inherit (callPackage ../development/compilers/mlton {})
|
||||||
mlton20130715
|
mlton20130715
|
||||||
mlton20180207Binary;
|
mlton20180207Binary
|
||||||
|
mlton20180207;
|
||||||
|
|
||||||
mlton = mlton20130715;
|
mlton = mlton20130715;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user