xmr-stak: switch libmicrohttpd to 0.9.71
This commit is contained in:
parent
4beb9675e3
commit
342e281624
|
@ -1,5 +1,5 @@
|
||||||
{ stdenv, stdenvGcc6, lib
|
{ stdenv, lib, fetchpatch
|
||||||
, fetchFromGitHub, cmake, libmicrohttpd_0_9_70, openssl
|
, fetchFromGitHub, cmake, libmicrohttpd, openssl
|
||||||
, opencl-headers, ocl-icd, hwloc
|
, opencl-headers, ocl-icd, hwloc
|
||||||
, devDonationLevel ? "0.0"
|
, devDonationLevel ? "0.0"
|
||||||
, openclSupport ? true
|
, openclSupport ? true
|
||||||
|
@ -18,11 +18,18 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-O3";
|
NIX_CFLAGS_COMPILE = "-O3";
|
||||||
|
|
||||||
|
patches = [ (fetchpatch {
|
||||||
|
name = "fix-libmicrohttpd-0-9-71.patch";
|
||||||
|
url = "https://github.com/fireice-uk/xmr-stak/compare/06e08780eab54dbc025ce3f38c948e4eef2726a0...8adb208987f5881946992ab9cd9a45e4e2a4b870.patch";
|
||||||
|
excludes = [ "CMakeLists.txt.user" ];
|
||||||
|
hash = "sha256-Yv0U5EO1P5eikn1fKvUXEwemoUIjjeTjpP9p5J8pbC0=";
|
||||||
|
}) ];
|
||||||
|
|
||||||
cmakeFlags = [ "-DCUDA_ENABLE=OFF" ]
|
cmakeFlags = [ "-DCUDA_ENABLE=OFF" ]
|
||||||
++ lib.optional (!openclSupport) "-DOpenCL_ENABLE=OFF";
|
++ lib.optional (!openclSupport) "-DOpenCL_ENABLE=OFF";
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake ];
|
||||||
buildInputs = [ libmicrohttpd_0_9_70 openssl hwloc ]
|
buildInputs = [ libmicrohttpd openssl hwloc ]
|
||||||
++ lib.optionals openclSupport [ opencl-headers ocl-icd ];
|
++ lib.optionals openclSupport [ opencl-headers ocl-icd ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
Loading…
Reference in a new issue