git.iko.soy/typeable/nixpkgs
on master help sign in
mlton: adds mlton version 20180207
commita130228fe87c06a75f2f19343caea6905f611388 authorSophia Donataccio <srdqty@gmail.com> dateFri 12 Oct 2018, 00:30 (8 years ago) parent30da2b5
3 files changed+44−2
pkgs/development/compilers/mlton/default.nix+9−1 pkgs/development/compilers/mlton/from-git-source.nix+33 pkgs/top-level/all-packages.nix+2−1
pkgs/development/compilers/mlton/default.nix+9−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, fetchFromGitHub, patchelf, gmp }:
1+{ stdenv, fetchurl, fetchgit, patchelf, gmp }:
22rec {
33 mlton20130715 = import ./20130715.nix {
44 inherit stdenv fetchurl patchelf gmp;
@@ -7,4 +7,12 @@ rec {
77 mlton20180207Binary = import ./20180207-binary.nix {
88 inherit stdenv fetchurl patchelf gmp;
99 };
10+
11+ mlton20180207 = import ./from-git-source.nix {
12+ mltonBootstrap = mlton20180207Binary;
13+ version = "20180207";
14+ rev = "on-20180207-release";
15+ sha256 = "00rdd2di5x1dzac64il9z05m3fdzicjd3226wwjyynv631jj3q2a";
16+ inherit stdenv fetchgit gmp;
17+ };
1018}
pkgs/development/compilers/mlton/from-git-source.nixnew file+33
@@ -0,0 +1,33 @@
1+{ fetchgit
2+, gmp
3+, mltonBootstrap
4+, url ? "https://github.com/mlton/mlton"
5+, rev
6+, sha256
7+, stdenv
8+, version
9+}:
10+
11+stdenv.mkDerivation {
12+ name = "mlton-${version}";
13+
14+ src = fetchgit {
15+ inherit url rev sha256;
16+ };
17+
18+ buildInputs = [mltonBootstrap gmp];
19+
20+ preBuild = ''
21+ makeFlagsArray=(
22+ MLTON_VERSION="${version} ${rev}"
23+ CC="$(type -p cc)"
24+ PREFIX="$out"
25+ WITH_GMP_INC_DIR="${gmp.dev}/include"
26+ WITH_GMP_LIB_DIR="${gmp}/lib"
27+ )
28+ '';
29+
30+ doCheck = true;
31+
32+ meta = import ./meta.nix;
33+}
pkgs/top-level/all-packages.nix+2−1
@@ -7164,7 +7164,8 @@ with pkgs;
71647164
71657165 inherit (callPackage ../development/compilers/mlton {})
71667166 mlton20130715
7167− mlton20180207Binary;
7167+ mlton20180207Binary
7168+ mlton20180207;
71687169
71697170 mlton = mlton20130715;
71707171