aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/applications/blockchains/wownero.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/blockchains/wownero.nix')
-rw-r--r--nixpkgs/pkgs/applications/blockchains/wownero.nix33
1 files changed, 23 insertions, 10 deletions
diff --git a/nixpkgs/pkgs/applications/blockchains/wownero.nix b/nixpkgs/pkgs/applications/blockchains/wownero.nix
index 1094d7f0f7b..8d45e1a96b5 100644
--- a/nixpkgs/pkgs/applications/blockchains/wownero.nix
+++ b/nixpkgs/pkgs/applications/blockchains/wownero.nix
@@ -1,19 +1,26 @@
-{ stdenv, fetchFromGitHub, cmake, boost, miniupnpc_2, openssl, unbound
-, readline, libsodium, rapidjson
+{ stdenv, fetchgit, cmake, boost, miniupnpc_2, openssl, unbound
+, readline, libsodium, rapidjson, fetchurl
}:
with stdenv.lib;
+let
+ randomwowVersion = "1.1.7";
+ randomwow = fetchurl {
+ url = "https://github.com/wownero/RandomWOW/archive/${randomwowVersion}.tar.gz";
+ sha256 = "1xp76zf01hnhnk6rjvqjav9n9pnvxzxlzqa5rc574d1c2qczfy3q";
+ };
+in
+
stdenv.mkDerivation rec {
pname = "wownero";
- version = "0.7.0";
-
- src = fetchFromGitHub {
- owner = "wownero";
- repo = "wownero";
- rev = "v${version}";
- sha256 = "0lji24s6346qxcj4pmylv8byb8fnqzpmz81rx4i3zhc1bcsvdwas";
- fetchSubmodules = true;
+ version = "0.8.0.1";
+
+ src = fetchgit {
+ url = "https://git.wownero.com/wownero/wownero.git";
+ rev = "v${version}";
+ sha256 = "15443xv6q1nw4627ajk6k4ghhahvh82lb4gyb8nvq753p2v838g3";
+ fetchSubmodules = false;
};
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"