diff options
author | Peter Simons <simons@cryp.to> | 2015-02-13 22:17:12 +0100 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2015-02-13 22:17:12 +0100 |
commit | 600135bba506ae93bf418cc484b3d9953a37f9de (patch) | |
tree | 5c0a8fabe2b1964c370d659b477685600095e521 /pkgs/development/compilers/nim/default.nix | |
parent | 7a1d132db9508d9831766da5b012d3d55e8c37c1 (diff) | |
parent | 54ce1a1810454aa24381d6c8370e48706ee48312 (diff) | |
download | nixlib-600135bba506ae93bf418cc484b3d9953a37f9de.tar nixlib-600135bba506ae93bf418cc484b3d9953a37f9de.tar.gz nixlib-600135bba506ae93bf418cc484b3d9953a37f9de.tar.bz2 nixlib-600135bba506ae93bf418cc484b3d9953a37f9de.tar.lz nixlib-600135bba506ae93bf418cc484b3d9953a37f9de.tar.xz nixlib-600135bba506ae93bf418cc484b3d9953a37f9de.tar.zst nixlib-600135bba506ae93bf418cc484b3d9953a37f9de.zip |
Merge remote-tracking branch 'master' into staging.
Diffstat (limited to 'pkgs/development/compilers/nim/default.nix')
-rw-r--r-- | pkgs/development/compilers/nim/default.nix | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/compilers/nim/default.nix b/pkgs/development/compilers/nim/default.nix new file mode 100644 index 000000000000..3b8f46eb6881 --- /dev/null +++ b/pkgs/development/compilers/nim/default.nix @@ -0,0 +1,27 @@ +{ stdenv, fetchurl, unzip }: + +stdenv.mkDerivation rec { + name = "nim-0.10.2"; + + buildInputs = [ unzip ]; + + src = fetchurl { + url = "http://nim-lang.org/download/${name}.zip"; + sha256 = "1jkrf8wgva7kfl0vqs1f3scidi6a85r6bkz2zf90k8gdpin9idrg"; + }; + + buildPhase = "sh build.sh"; + installPhase = + '' + 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 + }; +} |