Merge pull request #88231 from fuwa0529/update-wownero

wownero: 0.7.0 -> 0.8.0.0
This commit is contained in:
Lassulus 2020-06-04 13:32:36 +02:00 committed by GitHub
commit c8c93b6244
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,19 +1,26 @@
{ stdenv, fetchFromGitHub, cmake, boost, miniupnpc_2, openssl, unbound
, readline, libsodium, rapidjson
, readline, libsodium, rapidjson, fetchurl
}:
with stdenv.lib;
let
randomwowVersion = "1.1.6";
randomwow = fetchurl {
url = "https://github.com/wownero/RandomWOW/archive/${randomwowVersion}.tar.gz";
sha256 = "1c55y2dwrayh6k1avpchs89gq1mvy5c305h92jm2k48kzhw6a792";
};
in
stdenv.mkDerivation rec {
pname = "wownero";
version = "0.7.0";
version = "0.8.0.0";
src = fetchFromGitHub {
owner = "wownero";
repo = "wownero";
rev = "v${version}";
sha256 = "0lji24s6346qxcj4pmylv8byb8fnqzpmz81rx4i3zhc1bcsvdwas";
fetchSubmodules = true;
sha256 = "14nggivilgzaqhjd4ng3g2p884yp2hc322hpcpwjdnz2zfc3qq6c";
};
nativeBuildInputs = [ cmake ];
@ -22,6 +29,12 @@ stdenv.mkDerivation rec {
boost miniupnpc_2 openssl unbound rapidjson readline libsodium
];
postUnpack = ''
rm -r $sourceRoot/external/RandomWOW
unpackFile ${randomwow}
mv RandomWOW-${randomwowVersion} $sourceRoot/external/RandomWOW
'';
cmakeFlags = [
"-DReadline_ROOT_DIR=${readline.dev}"
"-DMANUAL_SUBMODULES=ON"