mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 23:52:55 +00:00
nim: wrap gcc
This commit is contained in:
parent
c311871a6d
commit
ebefef6f6d
@ -1,26 +1,32 @@
|
|||||||
{ stdenv, fetchurl, unzip }:
|
{ stdenv, lib, fetchurl, makeWrapper, gcc }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "nim-0.15.2";
|
name = "nim-${version}";
|
||||||
|
version = "0.15.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://nim-lang.org/download/${name}.tar.xz";
|
url = "http://nim-lang.org/download/${name}.tar.xz";
|
||||||
sha256 = "12pyzjx7x4hclzrf3zf6r1qjlp60bzsaqrz0rax2rak2c8qz4pch";
|
sha256 = "12pyzjx7x4hclzrf3zf6r1qjlp60bzsaqrz0rax2rak2c8qz4pch";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
buildPhase = "sh build.sh";
|
buildPhase = "sh build.sh";
|
||||||
|
|
||||||
installPhase =
|
installPhase =
|
||||||
''
|
''
|
||||||
install -Dt "$out/bin" bin/nim
|
install -Dt "$out/bin" bin/nim
|
||||||
substituteInPlace install.sh --replace '$1/nim' "$out"
|
substituteInPlace install.sh --replace '$1/nim' "$out"
|
||||||
sh install.sh $out
|
sh install.sh $out
|
||||||
|
wrapProgram $out/bin/nim \
|
||||||
|
--suffix PATH : ${lib.makeBinPath [ gcc ]}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib;
|
meta = with stdenv.lib;
|
||||||
{ description = "Statically typed, imperative programming language";
|
{ description = "Statically typed, imperative programming language";
|
||||||
homepage = http://nim-lang.org/;
|
homepage = http://nim-lang.org/;
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ehmry ];
|
maintainers = with maintainers; [ ehmry peterhoeg ];
|
||||||
platforms = platforms.linux ++ platforms.darwin; # arbitrary
|
platforms = platforms.linux ++ platforms.darwin; # arbitrary
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user