nimble: 0.7.2 -> 0.7.4
This commit is contained in:
parent
ab09c37f99
commit
a3bff71738
|
@ -1,37 +1,36 @@
|
||||||
{ stdenv, fetchFromGitHub, nim }:
|
{ stdenv, fetchFromGitHub, nim, openssl }:
|
||||||
|
|
||||||
let
|
|
||||||
srcs = {
|
|
||||||
nimble = fetchFromGitHub {
|
|
||||||
owner = "nim-lang";
|
|
||||||
repo = "nimble";
|
|
||||||
rev = "v0.7.2";
|
|
||||||
sha256 = "0j9b519cv91xwn6k0alynakh7grbq4m6yy5bdwdrqmc7lag35r0i";
|
|
||||||
};
|
|
||||||
nim = fetchFromGitHub {
|
|
||||||
owner = "nim-lang";
|
|
||||||
repo = "nim";
|
|
||||||
rev = "v0.13.0";
|
|
||||||
sha256 = "14grhkwdva4wmvihm1413ly86sf0qk96bd473pvsbgkp46cg8rii";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "nimble-${version}";
|
name = "nimble-${version}";
|
||||||
version = "0.7.2";
|
|
||||||
|
|
||||||
src = srcs.nimble;
|
version = "0.7.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "nim-lang";
|
||||||
|
repo = "nimble";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1l477f1zlqpc738jg47pz599cwjasgy9jqdsplj3ywd12xfqpc96";
|
||||||
|
};
|
||||||
|
|
||||||
buildInputs = [ nim ];
|
buildInputs = [ nim ];
|
||||||
|
|
||||||
postUnpack = ''
|
patchPhase = ''
|
||||||
mkdir -p $sourceRoot/vendor
|
substituteInPlace src/nimble.nim.cfg --replace "./vendor/nim" "${nim}/share"
|
||||||
ln -s ${srcs.nim} $sourceRoot/vendor/nim
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
nim c src/nimble
|
nim c src/nimble
|
||||||
'';
|
'';
|
||||||
installPhase = "installBin src/nimble";
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp src/nimble $out/bin
|
||||||
|
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [stdenv.cc.libc openssl]}" \
|
||||||
|
--add-needed libcrypto.so \
|
||||||
|
"$out/bin/nimble"
|
||||||
|
'';
|
||||||
|
|
||||||
|
dontStrip = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Package manager for the Nim programming language";
|
description = "Package manager for the Nim programming language";
|
||||||
|
|
Loading…
Reference in New Issue