2014-09-15 21:31:15 +02:00
|
|
|
{ stdenv, fetchurl, cmake, boost }:
|
|
|
|
|
|
|
|
let
|
|
|
|
version = "0.8.8.4";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "monero-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/monero-project/bitmonero/archive/v${version}.tar.gz";
|
|
|
|
sha256 = "0bbhqjjzh922aymjqrnl2hd3r8x6p7x5aa5jidv3l4d77drhlgzy";
|
|
|
|
};
|
|
|
|
|
2014-10-01 21:55:40 +02:00
|
|
|
buildInputs = [ cmake boost ];
|
2014-09-15 21:31:15 +02: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 18:40:19 +01:00
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=cpp";
|
|
|
|
|
2014-09-15 21:31:15 +02:00
|
|
|
doCheck = false;
|
|
|
|
checkTarget = "test-release"; # this would be the target
|
|
|
|
|
|
|
|
installPhase = ''
|
2015-12-05 13:59:05 +01:00
|
|
|
install -Dt "$out/bin/" \
|
2014-09-15 21:31:15 +02:00
|
|
|
src/bitmonerod \
|
|
|
|
src/connectivity_tool \
|
|
|
|
src/simpleminer \
|
|
|
|
src/simplewallet
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Private, secure, untraceable currency";
|
|
|
|
homepage = http://monero.cc/;
|
|
|
|
license = licenses.bsd3;
|
2015-12-05 22:41:25 +01:00
|
|
|
maintainers = [ maintainers.ehmry ];
|
2014-09-19 10:50:24 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2014-09-15 21:31:15 +02:00
|
|
|
};
|
2014-09-19 19:56:08 +02:00
|
|
|
}
|