2017-03-06 10:15:10 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, boost, miniupnpc, openssl, pkgconfig, unbound }:
|
2014-09-15 21:31:15 +02:00
|
|
|
|
|
|
|
let
|
2017-09-16 12:30:57 +02:00
|
|
|
version = "0.11.0.0";
|
2014-09-15 21:31:15 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "monero-${version}";
|
|
|
|
|
2016-07-30 02:37:49 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monero-project";
|
2017-01-17 01:28:39 +01:00
|
|
|
repo = "monero";
|
2016-07-30 02:37:49 +02:00
|
|
|
rev = "v${version}";
|
2017-09-16 12:30:57 +02:00
|
|
|
sha256 = "041xxk9gznfpgn8f07m7sddr74cwm1sdyf9i85k10ndja87xc6y4";
|
2014-09-15 21:31:15 +02:00
|
|
|
};
|
|
|
|
|
2016-07-30 02:37:49 +02:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
2017-03-06 10:15:10 +01:00
|
|
|
buildInputs = [ boost miniupnpc openssl unbound ];
|
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;
|
|
|
|
|
|
|
|
installPhase = ''
|
2015-12-05 13:59:05 +01:00
|
|
|
install -Dt "$out/bin/" \
|
2017-01-17 01:28:39 +01:00
|
|
|
bin/monerod \
|
|
|
|
bin/monero-blockchain-export \
|
|
|
|
bin/monero-blockchain-import \
|
|
|
|
bin/monero-wallet-cli \
|
|
|
|
bin/monero-wallet-rpc
|
2014-09-15 21:31:15 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Private, secure, untraceable currency";
|
2017-01-17 01:28:39 +01:00
|
|
|
homepage = https://getmonero.org/;
|
2014-09-15 21:31:15 +02:00
|
|
|
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
|
|
|
}
|