2015-02-10 14:48:41 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-04 12:34:22 +00:00
|
|
|
name = "nim-0.11.0";
|
2015-02-10 14:48:41 +00:00
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nim-lang.org/download/${name}.zip";
|
2015-05-04 12:34:22 +00:00
|
|
|
sha256 = "0l19rrp6nhwhr2z33np4x32c35iba0hhv6w3qwj1sk8bjfpvz4cw";
|
2015-02-10 14:48:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = "sh build.sh";
|
|
|
|
installPhase =
|
|
|
|
''
|
2015-05-04 12:34:22 +00:00
|
|
|
installBin bin/nim
|
2015-02-10 14:48:41 +00: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;
|
|
|
|
maintainers = with maintainers; [ emery ];
|
|
|
|
platforms = platforms.linux; # arbitrary
|
|
|
|
};
|
|
|
|
}
|