monero: cleanup

This commit is contained in:
rnhmjoj 2018-03-31 04:07:28 +02:00
parent 80e730c9a4
commit 6545d15020
No known key found for this signature in database
GPG Key ID: 91BE884FBA4B591A

View File

@ -1,8 +1,13 @@
{ stdenv, fetchpatch, fetchFromGitHub, cmake, pkgconfig, git
, boost, miniupnpc, openssl, unbound, cppzmq, zeromq, pcsclite
, readline, IOKit
{ stdenv, fetchFromGitHub, cmake, pkgconfig, git
, boost, miniupnpc, openssl, unbound, cppzmq
, zeromq, pcsclite, readline
, IOKit ? null
}:
assert stdenv.isDarwin -> IOKit != null;
with stdenv.lib;
stdenv.mkDerivation rec {
name = "monero-${version}";
version = "0.12.0.0";
@ -16,8 +21,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake pkgconfig git ];
buildInputs = [ boost miniupnpc openssl unbound cppzmq zeromq pcsclite readline ]
++ stdenv.lib.optional stdenv.isDarwin IOKit;
buildInputs = [
boost miniupnpc openssl unbound
cppzmq zeromq pcsclite readline
] ++ optional stdenv.isDarwin IOKit;
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=Release"
@ -27,19 +34,11 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "fortify" ];
installPhase = ''
make install
install -Dt "$out/bin/" \
bin/monero-blockchain-export \
bin/monero-blockchain-import \
bin/monero-wallet-rpc
'';
meta = with stdenv.lib; {
meta = {
description = "Private, secure, untraceable currency";
homepage = https://getmonero.org/;
license = licenses.bsd3;
platforms = platforms.all;
maintainers = [ maintainers.ehmry ];
maintainers = with maintainers; [ ehmry rnhmjoj ];
};
}