2015-02-10 14:48:41 +00:00
|
|
|
{ stdenv, fetchurl, unzip }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-08-13 08:33:52 +01:00
|
|
|
name = "nim-0.11.2";
|
2015-02-10 14:48:41 +00:00
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://nim-lang.org/download/${name}.zip";
|
2015-08-13 08:33:52 +01:00
|
|
|
sha256 = "0ay8gkd8fki3d8kbnw2px7rjdlr54kyqh5n1rjhq4vjmqs2wg5s4";
|
2015-02-10 14:48:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildPhase = "sh build.sh";
|
|
|
|
installPhase =
|
|
|
|
''
|
2015-05-04 13:34:22 +01: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 ];
|
2015-11-16 22:50:40 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin; # arbitrary
|
2015-02-10 14:48:41 +00:00
|
|
|
};
|
|
|
|
}
|