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