2018-03-28 04:53:07 +00:00
|
|
|
{ stdenv, fetchpatch, fetchFromGitHub, cmake, pkgconfig, git
|
|
|
|
, boost, miniupnpc, openssl, unbound, cppzmq, zeromq, pcsclite
|
|
|
|
, readline, IOKit
|
2018-01-26 22:17:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "monero-${version}";
|
2018-03-28 04:53:07 +00:00
|
|
|
version = "0.12.0.0";
|
2018-01-26 22:17:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "monero-project";
|
|
|
|
repo = "monero";
|
|
|
|
rev = "v${version}";
|
2018-03-28 04:53:07 +00:00
|
|
|
sha256 = "1lc9mkrl1m8mdbvj88y8y5rv44vinxf7dyv221ndmw5c5gs5zfgk";
|
2018-01-26 22:17:38 +00:00
|
|
|
};
|
|
|
|
|
2018-03-28 04:53:07 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig git ];
|
2018-01-26 22:17:38 +00:00
|
|
|
|
2018-03-28 04:53:07 +00:00
|
|
|
buildInputs = [ boost miniupnpc openssl unbound cppzmq zeromq pcsclite readline ]
|
2018-03-21 21:41:26 +00:00
|
|
|
++ stdenv.lib.optional stdenv.isDarwin IOKit;
|
2018-01-26 22:17:38 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
|
|
"-DBUILD_GUI_DEPS=ON"
|
2018-03-28 04:53:07 +00:00
|
|
|
"-DReadline_ROOT_DIR=${readline.dev}"
|
2018-01-26 22:17:38 +00:00
|
|
|
];
|
|
|
|
|
2018-03-28 04:53:07 +00:00
|
|
|
hardeningDisable = [ "fortify" ];
|
2018-01-26 22:17:38 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
make install
|
|
|
|
install -Dt "$out/bin/" \
|
|
|
|
bin/monero-blockchain-export \
|
|
|
|
bin/monero-blockchain-import \
|
|
|
|
bin/monero-wallet-rpc
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Private, secure, untraceable currency";
|
|
|
|
homepage = https://getmonero.org/;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = [ maintainers.ehmry ];
|
|
|
|
};
|
|
|
|
}
|