pkgs#miningcore: use local runtime

This commit is contained in:
Timothy DeHerrera 2020-12-14 00:40:46 -07:00
parent 9134e200ab
commit 4a97ba81d2
No known key found for this signature in database
GPG Key ID: 8985725DB5B0C122

View File

@ -8,7 +8,6 @@
, boost
, libsodium
, pkgconfig
, icu
, zeromq
}:
let
@ -75,26 +74,19 @@ stdenv.mkDerivation rec {
dotnet restore \
--source ${nugetSource}/lib \
--runtime ${projectRuntime} \
src/${projectName}
dotnet publish \
dotnet build \
--no-restore \
--runtime ${projectRuntime} \
--configuration ${projectConfiguration} \
src/${projectName}
'';
installPhase = ''
mkdir -p $out
cp -r src/${projectName}/bin/${projectConfiguration}/netcoreapp3.1/${projectRuntime}/publish $out/lib
mkdir -p $out/bin
makeWrapper $out/lib/Miningcore $out/bin/${pname} \
--prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [
openssl
icu
zeromq
]} \
dotnet publish --no-restore -o $out/lib -c Release src/${projectName}
makeWrapper $out/lib/${projectName} $out/bin/${pname} \
--set DOTNET_ROOT "${dotnet-sdk}" \
--run "cd $out/lib"
'';