54 lines
1.3 KiB
Nix
54 lines
1.3 KiB
Nix
{ stdenv, fetchFromGitHub, fetchpatch
|
|
, cmake, pkgconfig, git
|
|
, boost, miniupnpc, openssl, unbound, cppzmq
|
|
, zeromq, pcsclite, readline
|
|
, CoreData, IOKit, PCSC
|
|
}:
|
|
|
|
assert stdenv.isDarwin -> IOKit != null;
|
|
|
|
with stdenv.lib;
|
|
|
|
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 ];
|
|
|
|
patches = [
|
|
# fix daemon crash, remove with 0.12.1.0 update
|
|
(fetchpatch {
|
|
url = "https://github.com/monero-project/monero/commit/08343ab.diff";
|
|
sha256 = "0f1snrl2mk2czwk1ysympzr8ismjx39fcqgy13276vcmw0cfqi83";
|
|
})
|
|
];
|
|
|
|
buildInputs = [
|
|
boost miniupnpc openssl unbound
|
|
cppzmq zeromq pcsclite readline
|
|
] ++ optionals stdenv.isDarwin [ IOKit CoreData PCSC ];
|
|
|
|
cmakeFlags = [
|
|
"-DCMAKE_BUILD_TYPE=Release"
|
|
"-DBUILD_GUI_DEPS=ON"
|
|
"-DReadline_ROOT_DIR=${readline.dev}"
|
|
];
|
|
|
|
hardeningDisable = [ "fortify" ];
|
|
|
|
meta = {
|
|
description = "Private, secure, untraceable currency";
|
|
homepage = https://getmonero.org/;
|
|
license = licenses.bsd3;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ ehmry rnhmjoj ];
|
|
};
|
|
}
|