Skip to content

Commit

Permalink
wownero: 0.7.0 -> 0.8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fuwa25519 committed May 20, 2020
1 parent 4d20a20 commit b7eec6a
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions pkgs/applications/blockchains/wownero.nix
@@ -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 ];
Expand All @@ -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"
Expand Down

0 comments on commit b7eec6a

Please sign in to comment.