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

27 lines
712 B
Nix
Raw Normal View History

2015-02-10 14:48:41 +00:00
{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
2016-06-09 20:20:11 +01:00
name = "nim-0.14.2";
2015-02-10 14:48:41 +00:00
src = fetchurl {
2016-01-20 16:47:43 +00:00
url = "http://nim-lang.org/download/${name}.tar.xz";
2016-06-09 20:20:11 +01:00
sha256 = "14jy7wza54jawja21r6v676qyj0i9kg1jpn5bxwn8wfm1vbki3cg";
2015-02-10 14:48:41 +00:00
};
buildPhase = "sh build.sh";
installPhase =
''
install -Dt "$out/bin" 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; [ ehmry ];
2015-11-16 22:50:40 +00:00
platforms = platforms.linux ++ platforms.darwin; # arbitrary
2015-02-10 14:48:41 +00:00
};
}