2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, curl, jansson, autoconf, automake
|
2020-08-05 04:32:41 +02:00
|
|
|
, aesni ? stdenv.hostPlatform.aesSupport }:
|
2014-06-29 06:05:39 +02:00
|
|
|
|
|
|
|
let
|
2016-07-31 17:10:41 +02:00
|
|
|
rev = "8393e03089c0abde61bd5d72aba8f926c3d6eca4";
|
|
|
|
date = "20160316";
|
2014-06-29 06:05:39 +02:00
|
|
|
in
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2021-01-15 10:19:50 +01:00
|
|
|
name = "cpuminer-multi-${date}-${lib.strings.substring 0 7 rev}";
|
2014-06-29 06:05:39 +02:00
|
|
|
|
2020-11-18 04:37:53 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hyc";
|
|
|
|
repo = "cpuminer-multi";
|
2014-06-29 06:05:39 +02:00
|
|
|
inherit rev;
|
2016-07-31 17:10:41 +02:00
|
|
|
sha256 = "11dg4rra4dgfb9x6q85irn0hrkx2lkwyrdpgdh10pag09s3vhy4v";
|
2014-06-29 06:05:39 +02:00
|
|
|
};
|
|
|
|
|
2014-09-22 18:28:19 +02:00
|
|
|
buildInputs = [ autoconf automake curl jansson ];
|
2014-06-29 06:05:39 +02:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2014-09-22 18:28:19 +02:00
|
|
|
configureFlags = [ (if aesni then "--enable-aes-ni" else "--disable-aes-ni") ];
|
2014-06-29 06:05:39 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-06-29 06:05:39 +02:00
|
|
|
description = "Multi-algo CPUMiner";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/wolf9466/cpuminer-multi";
|
2014-06-29 06:05:39 +02:00
|
|
|
license = licenses.gpl2;
|
2015-12-05 22:41:25 +01:00
|
|
|
maintainers = [ maintainers.ehmry ];
|
2016-08-07 09:22:47 +02:00
|
|
|
# does not build on i686 https://github.com/lucasjones/cpuminer-multi/issues/27
|
2020-08-05 04:32:41 +02:00
|
|
|
platforms = [ "x86_64-linux" ];
|
2014-06-29 06:05:39 +02:00
|
|
|
};
|
2016-07-31 17:10:41 +02:00
|
|
|
}
|