2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl, jansson, autoconf, automake
|
2020-09-25 04:45:31 +00:00
|
|
|
, aesni ? stdenv.hostPlatform.aesSupport }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-12-06 16:07:01 +00:00
|
|
|
pname = "cpuminer-multi";
|
|
|
|
version = "unstable-2016-03-16";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hyc";
|
|
|
|
repo = "cpuminer-multi";
|
2021-12-06 16:07:01 +00:00
|
|
|
rev = "8393e03089c0abde61bd5d72aba8f926c3d6eca4";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "11dg4rra4dgfb9x6q85irn0hrkx2lkwyrdpgdh10pag09s3vhy4v";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ autoconf automake curl jansson ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ (if aesni then "--enable-aes-ni" else "--disable-aes-ni") ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Multi-algo CPUMiner";
|
|
|
|
homepage = "https://github.com/wolf9466/cpuminer-multi";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
# does not build on i686 https://github.com/lucasjones/cpuminer-multi/issues/27
|
2020-09-25 04:45:31 +00:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|