xmrig: 2.6.4 -> 2.8.3

This commit is contained in:
Franz Pletz
2018-11-22 14:36:26 +01:00
parent c826315257
commit 5778e8ae75
+4 -4
View File
@@ -1,20 +1,20 @@
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd { stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
, donateLevel ? 0 , donateLevel ? 0
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "xmrig-${version}"; name = "xmrig-${version}";
version = "2.6.4"; version = "2.8.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "xmrig"; owner = "xmrig";
repo = "xmrig"; repo = "xmrig";
rev = "v${version}"; rev = "v${version}";
sha256 = "1c68qg7433chri6q1yhyggy4mbq2vnn3p2fxs8gqmgij9vpqn3m2"; sha256 = "144i24c707fja89iqcc511b4077p53q8w2cq5zd26hry2i4i3abi";
}; };
nativeBuildInputs = [ cmake ]; nativeBuildInputs = [ cmake ];
buildInputs = [ libuv libmicrohttpd ]; buildInputs = [ libuv libmicrohttpd openssl ];
postPatch = '' postPatch = ''
substituteInPlace src/donate.h --replace "kDonateLevel = 5;" "kDonateLevel = ${toString donateLevel};" substituteInPlace src/donate.h --replace "kDonateLevel = 5;" "kDonateLevel = ${toString donateLevel};"