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 let
version = "0.8.8.4"; version = "0.9.4";
in in
stdenv.mkDerivation { stdenv.mkDerivation {
name = "monero-${version}"; name = "monero-${version}";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/monero-project/bitmonero/archive/v${version}.tar.gz"; owner = "monero-project";
sha256 = "0bbhqjjzh922aymjqrnl2hd3r8x6p7x5aa5jidv3l4d77drhlgzy"; 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 # these tests take a long time and don't
# always complete in the build environment # always complete in the build environment
@ -20,14 +24,17 @@ stdenv.mkDerivation {
NIX_CFLAGS_COMPILE = "-Wno-error=cpp"; NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
doCheck = false; doCheck = false;
checkTarget = "test-release"; # this would be the target
installPhase = '' installPhase = ''
install -Dt "$out/bin/" \ install -Dt "$out/bin/" \
src/bitmonerod \ bin/bitmonerod \
src/connectivity_tool \ bin/blockchain_converter \
src/simpleminer \ bin/blockchain_dump \
src/simplewallet bin/blockchain_export \
bin/blockchain_import \
bin/cn_deserialize \
bin/simpleminer \
bin/simplewallet
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {