nixpkgs/pkgs/development/compilers/mosml/default.nix

30 lines
847 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, gmp, perl }:
2018-08-10 07:00:39 +00:00
stdenv.mkDerivation rec {
pname = "mosml";
2018-08-10 07:00:39 +00:00
version = "2.10.1";
buildInputs = [ gmp perl ];
makeFlags = [ "PREFIX=$(out)" "CC=${stdenv.cc.targetPrefix}cc" ];
2018-08-10 07:00:39 +00:00
src = fetchurl {
url = "https://github.com/kfl/mosml/archive/ver-${version}.tar.gz";
sha256 = "13x7wj94p0inn84pzpj52dch5s9lznqrj287bd3nk3dqd0v3kmgy";
};
setSourceRoot = ''export sourceRoot="$(echo */src)"'';
meta = with lib; {
2018-08-10 07:00:39 +00:00
description = "A light-weight implementation of Standard ML";
longDescription = ''
Moscow ML is a light-weight implementation of Standard ML (SML), a strict
functional language used in teaching and research.
'';
homepage = "https://mosml.org/";
2018-08-10 07:00:39 +00:00
license = licenses.gpl2;
2019-08-20 21:20:00 +00:00
platforms = platforms.unix;
2018-08-10 07:00:39 +00:00
maintainers = with maintainers; [ vaibhavsagar ];
};
}