nixpkgs/pkgs/development/compilers/nim/default.nix
Vladimír Čunát ae74c356d9 Merge recent 'staging' into closure-size
Let's get rid of those merge conflicts.
2016-02-03 16:57:19 +01:00

27 lines
712 B
Nix

{ stdenv, fetchurl, unzip }:
stdenv.mkDerivation rec {
name = "nim-0.13.0";
src = fetchurl {
url = "http://nim-lang.org/download/${name}.tar.xz";
sha256 = "1adiij20n1cigsc44dbp60jdbydmkfp7ixbddmcn6h4dfvjzaqfd";
};
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
};
}