1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 04:48:10 +00:00
nixpkgs/pkgs/development/compilers/nim/default.nix
2016-06-11 14:53:07 +02:00

27 lines
712 B
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "nim-0.14.2";
src = fetchurl {
url = "http://nim-lang.org/download/${name}.tar.xz";
sha256 = "14jy7wza54jawja21r6v676qyj0i9kg1jpn5bxwn8wfm1vbki3cg";
};
buildPhase = "sh build.sh";
installPhase =
''
install -Dt "$out/bin" bin/nim
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 ];
platforms = platforms.linux ++ platforms.darwin; # arbitrary
};
}