2016-07-30 01:37:49 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost, miniupnpc, pkgconfig, unbound }:
|
2014-09-15 20:31:15 +01:00
|
|
|
|
|
|
|
let
|
2016-07-30 01:37:49 +01:00
|
|
|
version = "0.9.4";
|
2014-09-15 20:31:15 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "monero-${version}";
|
|
|
|
|
2016-07-30 01:37:49 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monero-project";
|
|
|
|
repo = "bitmonero";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qzpy1mxz0ky6hfk1gf67ybbr9xy6p6irh6zwri35h1gb97sbc3c";
|
2014-09-15 20:31:15 +01:00
|
|
|
};
|
|
|
|
|
2016-07-30 01:37:49 +01:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ boost miniupnpc unbound ];
|
2014-09-15 20:31:15 +01:00
|
|
|
|
|
|
|
# these tests take a long time and don't
|
|
|
|
# always complete in the build environment
|
|
|
|
postPatch = "sed -i '/add_subdirectory(tests)/d' CMakeLists.txt";
|
2014-11-28 17:40:19 +00:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
|
|
|
|
|
2014-09-15 20:31:15 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
installPhase = ''
|
2015-12-05 12:59:05 +00:00
|
|
|
install -Dt "$out/bin/" \
|
2016-07-30 01:37:49 +01:00
|
|
|
bin/bitmonerod \
|
|
|
|
bin/blockchain_converter \
|
|
|
|
bin/blockchain_dump \
|
|
|
|
bin/blockchain_export \
|
|
|
|
bin/blockchain_import \
|
|
|
|
bin/cn_deserialize \
|
|
|
|
bin/simpleminer \
|
|
|
|
bin/simplewallet
|
2014-09-15 20:31:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Private, secure, untraceable currency";
|
|
|
|
homepage = http://monero.cc/;
|
|
|
|
license = licenses.bsd3;
|
2015-12-05 21:41:25 +00:00
|
|
|
maintainers = [ maintainers.ehmry ];
|
2014-09-19 09:50:24 +01:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2014-09-15 20:31:15 +01:00
|
|
|
};
|
2014-09-19 18:56:08 +01:00
|
|
|
}
|