3
0
Fork 0
forked from mirrors/nixpkgs

monero: 0.8.8.4 -> 0.9.4 (#17371)

This commit is contained in:
Kranium Gikos Mendoza 2016-07-30 08:37:49 +08:00 committed by obadz
parent c8f535b452
commit c9e5ddde0a

View file

@ -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; {