@@ -1,4 +1,4 @@
1−{ stdenv, fetchFromGitHub, fetchpatch
1+{ stdenv, fetchgit
22, cmake, pkgconfig, git
33, boost, miniupnpc, openssl, unbound, cppzmq
44, zeromq, pcsclite, readline
@@ -11,25 +11,16 @@ with stdenv.lib;
1111
1212stdenv.mkDerivation rec {
1313 name = "monero-${version}";
14− version = "0.12.0.0";
14+ version = "0.12.3.0";
1515
16− src = fetchFromGitHub {
17− owner = "monero-project";
18− repo = "monero";
16+ src = fetchgit {
17+ url = "https://github.com/monero-project/monero.git";
1918 rev = "v${version}";
20− sha256 = "1lc9mkrl1m8mdbvj88y8y5rv44vinxf7dyv221ndmw5c5gs5zfgk";
19+ sha256 = "1609k1qn9xx37a92ai36rajds9cmdjlkqyka95hks5xjr3l5ca8i";
2120 };
2221
2322 nativeBuildInputs = [ cmake pkgconfig git ];
2423
25− patches = [
26− # fix daemon crash, remove with 0.12.1.0 update
27− (fetchpatch {
28− url = "https://github.com/monero-project/monero/commit/08343ab.diff";
29− sha256 = "0f1snrl2mk2czwk1ysympzr8ismjx39fcqgy13276vcmw0cfqi83";
30− })
31− ];
32−
3324 buildInputs = [
3425 boost miniupnpc openssl unbound
3526 cppzmq zeromq pcsclite readline
@@ -39,7 +30,7 @@ stdenv.mkDerivation rec {
3930 "-DCMAKE_BUILD_TYPE=Release"
4031 "-DBUILD_GUI_DEPS=ON"
4132 "-DReadline_ROOT_DIR=${readline.dev}"
42− ];
33+ ] ++ optional stdenv.isDarwin "-DBoost_USE_MULTITHREADED=OFF";
4334
4435 hardeningDisable = [ "fortify" ];
4536