monero: cleanup
This commit is contained in:
parent
80e730c9a4
commit
6545d15020
@ -1,8 +1,13 @@
|
|||||||
{ stdenv, fetchpatch, fetchFromGitHub, cmake, pkgconfig, git
|
{ stdenv, fetchFromGitHub, cmake, pkgconfig, git
|
||||||
, boost, miniupnpc, openssl, unbound, cppzmq, zeromq, pcsclite
|
, boost, miniupnpc, openssl, unbound, cppzmq
|
||||||
, readline, IOKit
|
, zeromq, pcsclite, readline
|
||||||
|
, IOKit ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
assert stdenv.isDarwin -> IOKit != null;
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "monero-${version}";
|
name = "monero-${version}";
|
||||||
version = "0.12.0.0";
|
version = "0.12.0.0";
|
||||||
@ -16,8 +21,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake pkgconfig git ];
|
nativeBuildInputs = [ cmake pkgconfig git ];
|
||||||
|
|
||||||
buildInputs = [ boost miniupnpc openssl unbound cppzmq zeromq pcsclite readline ]
|
buildInputs = [
|
||||||
++ stdenv.lib.optional stdenv.isDarwin IOKit;
|
boost miniupnpc openssl unbound
|
||||||
|
cppzmq zeromq pcsclite readline
|
||||||
|
] ++ optional stdenv.isDarwin IOKit;
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
"-DCMAKE_BUILD_TYPE=Release"
|
"-DCMAKE_BUILD_TYPE=Release"
|
||||||
@ -27,19 +34,11 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
hardeningDisable = [ "fortify" ];
|
hardeningDisable = [ "fortify" ];
|
||||||
|
|
||||||
installPhase = ''
|
meta = {
|
||||||
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";
|
description = "Private, secure, untraceable currency";
|
||||||
homepage = https://getmonero.org/;
|
homepage = https://getmonero.org/;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = [ maintainers.ehmry ];
|
maintainers = with maintainers; [ ehmry rnhmjoj ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user