mirror of
https://github.com/divnix/digga.git
synced 2024-11-23 20:22:04 +03:00
pkgs#miningcore: use local runtime
This commit is contained in:
parent
9134e200ab
commit
4a97ba81d2
@ -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"
|
||||
'';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user