2015-02-10 15:48:41 +01:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-01-20 17:47:43 +01:00
|
|
|
name = "nim-0.13.0";
|
2015-02-10 15:48:41 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-01-20 17:47:43 +01:00
|
|
|
url = "http://nim-lang.org/download/${name}.tar.xz";
|
|
|
|
sha256 = "1adiij20n1cigsc44dbp60jdbydmkfp7ixbddmcn6h4dfvjzaqfd";
|
2015-02-10 15:48:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = "sh build.sh";
|
|
|
|
installPhase =
|
|
|
|
''
|
2015-05-04 14:34:22 +02:00
|
|
|
installBin bin/nim
|
2015-02-10 15:48:41 +01:00
|
|
|
substituteInPlace install.sh --replace '$1/nim' "$out"
|
|
|
|
sh install.sh $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib;
|
|
|
|
{ description = "Statically typed, imperative programming language";
|
|
|
|
homepage = http://nim-lang.org/;
|
|
|
|
license = licenses.mit;
|
2015-12-05 22:41:25 +01:00
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2015-11-16 23:50:40 +01:00
|
|
|
platforms = platforms.linux ++ platforms.darwin; # arbitrary
|
2015-02-10 15:48:41 +01:00
|
|
|
};
|
|
|
|
}
|