mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
46 lines
1.1 KiB
Nix
46 lines
1.1 KiB
Nix
{ stdenv, fetchpatch, fetchFromGitHub, cmake, pkgconfig, git
|
|
, boost, miniupnpc, openssl, unbound, cppzmq, zeromq, pcsclite
|
|
, readline, IOKit
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "monero-${version}";
|
|
version = "0.12.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "monero-project";
|
|
repo = "monero";
|
|
rev = "v${version}";
|
|
sha256 = "1lc9mkrl1m8mdbvj88y8y5rv44vinxf7dyv221ndmw5c5gs5zfgk";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkgconfig git ];
|
|
|
|
buildInputs = [ boost miniupnpc openssl unbound cppzmq zeromq pcsclite readline ]
|
|
++ stdenv.lib.optional stdenv.isDarwin IOKit;
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
"-DBUILD_GUI_DEPS=ON"
|
|
"-DReadline_ROOT_DIR=${readline.dev}"
|
|
];
|
|
|
|
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; {
|
|
description = "Private, secure, untraceable currency";
|
|
homepage = https://getmonero.org/;
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
maintainers = [ maintainers.ehmry ];
|
|
};
|
|
}
|