From 6545d1502070362b6b2490935fcc4a966acdfca2 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Sat, 31 Mar 2018 04:07:28 +0200 Subject: [PATCH] monero: cleanup --- pkgs/applications/altcoins/monero/default.nix | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/pkgs/applications/altcoins/monero/default.nix b/pkgs/applications/altcoins/monero/default.nix index 48932afaa0e2..85f5c2eb07c3 100644 --- a/pkgs/applications/altcoins/monero/default.nix +++ b/pkgs/applications/altcoins/monero/default.nix @@ -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 ]; }; }