xmrig: 2.6.4 -> 2.8.3

This commit is contained in:
Franz Pletz 2018-11-22 13:37:37 +01:00
parent c826315257
commit 5778e8ae75
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4

View File

@ -1,20 +1,20 @@
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd
{ stdenv, lib, fetchFromGitHub, cmake, libuv, libmicrohttpd, openssl
, donateLevel ? 0
}:
stdenv.mkDerivation rec {
name = "xmrig-${version}";
version = "2.6.4";
version = "2.8.3";
src = fetchFromGitHub {
owner = "xmrig";
repo = "xmrig";
rev = "v${version}";
sha256 = "1c68qg7433chri6q1yhyggy4mbq2vnn3p2fxs8gqmgij9vpqn3m2";
sha256 = "144i24c707fja89iqcc511b4077p53q8w2cq5zd26hry2i4i3abi";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libuv libmicrohttpd ];
buildInputs = [ libuv libmicrohttpd openssl ];
postPatch = ''
substituteInPlace src/donate.h --replace "kDonateLevel = 5;" "kDonateLevel = ${toString donateLevel};"