forked from pub-solar/os
pkgs#miningcore: use local runtime
This commit is contained in:
parent
9134e200ab
commit
4a97ba81d2
|
@ -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"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue