about summary refs log tree commit diff
path: root/pkgs/applications/misc
diff options
context:
space:
mode:
authorKranium Gikos Mendoza <kranium@gikos.net>2016-07-30 08:37:49 +0800
committerobadz <obadz-git@obadz.com>2016-07-30 01:37:49 +0100
commitc9e5ddde0a7f1624986e4b7f80fc6e66b2544006 (patch)
treee09e52c0e1fd3426ac97c9bbb83588222e92aedd /pkgs/applications/misc
parentc8f535b45254af14b145d4d48734af01abc34b79 (diff)
downloadnixlib-c9e5ddde0a7f1624986e4b7f80fc6e66b2544006.tar
nixlib-c9e5ddde0a7f1624986e4b7f80fc6e66b2544006.tar.gz
nixlib-c9e5ddde0a7f1624986e4b7f80fc6e66b2544006.tar.bz2
nixlib-c9e5ddde0a7f1624986e4b7f80fc6e66b2544006.tar.lz
nixlib-c9e5ddde0a7f1624986e4b7f80fc6e66b2544006.tar.xz
nixlib-c9e5ddde0a7f1624986e4b7f80fc6e66b2544006.tar.zst
nixlib-c9e5ddde0a7f1624986e4b7f80fc6e66b2544006.zip
monero: 0.8.8.4 -> 0.9.4 (#17371)
Diffstat (limited to 'pkgs/applications/misc')
-rw-r--r--pkgs/applications/misc/monero/default.nix29
1 files changed, 18 insertions, 11 deletions
diff --git a/pkgs/applications/misc/monero/default.nix b/pkgs/applications/misc/monero/default.nix
index 1fa5d1a28d57..7f4311c2f490 100644
--- a/pkgs/applications/misc/monero/default.nix
+++ b/pkgs/applications/misc/monero/default.nix
@@ -1,17 +1,21 @@
-{ stdenv, fetchurl, cmake, boost }:
+{ stdenv, fetchFromGitHub, cmake, boost, miniupnpc, pkgconfig, unbound }:
 
 let
-  version = "0.8.8.4";
+  version = "0.9.4";
 in
 stdenv.mkDerivation {
   name = "monero-${version}";
 
-  src = fetchurl {
-    url = "https://github.com/monero-project/bitmonero/archive/v${version}.tar.gz";
-    sha256 = "0bbhqjjzh922aymjqrnl2hd3r8x6p7x5aa5jidv3l4d77drhlgzy";
+  src = fetchFromGitHub {
+    owner = "monero-project";
+    repo = "bitmonero";
+    rev = "v${version}";
+    sha256 = "1qzpy1mxz0ky6hfk1gf67ybbr9xy6p6irh6zwri35h1gb97sbc3c";
   };
 
-  buildInputs = [ cmake boost ];
+  nativeBuildInputs = [ cmake pkgconfig ];
+
+  buildInputs = [ boost miniupnpc unbound ];
 
   # these tests take a long time and don't
   # always complete in the build environment
@@ -20,14 +24,17 @@ stdenv.mkDerivation {
   NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
 
   doCheck = false;
-  checkTarget = "test-release"; # this would be the target
 
   installPhase = ''
     install -Dt "$out/bin/" \
-        src/bitmonerod \
-        src/connectivity_tool \
-        src/simpleminer \
-        src/simplewallet
+        bin/bitmonerod \
+        bin/blockchain_converter \
+        bin/blockchain_dump \
+        bin/blockchain_export \
+        bin/blockchain_import \
+        bin/cn_deserialize \
+        bin/simpleminer \
+        bin/simplewallet
   '';
 
   meta = with stdenv.lib; {