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

29 lines
705 B
Nix
Raw Normal View History

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