mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 20:49:52 +03:00
nimble: Do not use patchelf.
This commit is contained in:
parent
0f281dec98
commit
908ad09fd6
@ -12,22 +12,20 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "12znxzj1j5fflw2mkkrns9n7qg6sf207652zrdyf7h2jdyzzb73x";
|
sha256 = "12znxzj1j5fflw2mkkrns9n7qg6sf207652zrdyf7h2jdyzzb73x";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ nim ];
|
buildInputs = [ nim openssl ];
|
||||||
|
|
||||||
patchPhase = ''
|
patchPhase = ''
|
||||||
substituteInPlace src/nimble.nim.cfg --replace "./vendor/nim" "${nim}/share"
|
substituteInPlace src/nimble.nim.cfg --replace "./vendor/nim" "${nim}/share"
|
||||||
|
echo "--clib:crypto" >> src/nimble.nim.cfg
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
nim c src/nimble
|
cd src && nim c -d:release nimble
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp src/nimble $out/bin
|
cp nimble $out/bin
|
||||||
patchelf --set-rpath "${stdenv.lib.makeLibraryPath [stdenv.cc.libc openssl]}" \
|
|
||||||
--add-needed libcrypto.so \
|
|
||||||
"$out/bin/nimble"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
dontStrip = true;
|
dontStrip = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user