mlton: adds mlton version 20180207

This commit is contained in:
Sophia Donataccio 2018-10-12 00:30:48 -04:00
parent 30da2b5659
commit a130228fe8
3 changed files with 44 additions and 2 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, fetchFromGitHub, patchelf, gmp }:
{ stdenv, fetchurl, fetchgit, patchelf, gmp }:
rec {
mlton20130715 = import ./20130715.nix {
inherit stdenv fetchurl patchelf gmp;
@ -7,4 +7,12 @@ rec {
mlton20180207Binary = import ./20180207-binary.nix {
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;
};
}

View 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;
}

View file

@ -7164,7 +7164,8 @@ with pkgs;
inherit (callPackage ../development/compilers/mlton {})
mlton20130715
mlton20180207Binary;
mlton20180207Binary
mlton20180207;
mlton = mlton20130715;