2014-09-22 16:28:19 +00:00
|
|
|
{ stdenv, fetchgit, curl, jansson, autoconf, automake
|
2014-06-29 04:05:39 +00:00
|
|
|
, aesni ? true }:
|
|
|
|
|
|
|
|
let
|
2016-07-31 15:10:41 +00:00
|
|
|
rev = "8393e03089c0abde61bd5d72aba8f926c3d6eca4";
|
|
|
|
date = "20160316";
|
2014-06-29 04:05:39 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cpuminer-multi-${date}-${stdenv.lib.strings.substring 0 7 rev}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = https://github.com/wolf9466/cpuminer-multi.git;
|
2016-07-31 15:10:41 +00:00
|
|
|
sha256 = "11dg4rra4dgfb9x6q85irn0hrkx2lkwyrdpgdh10pag09s3vhy4v";
|
2014-06-29 04:05:39 +00:00
|
|
|
};
|
|
|
|
|
2014-09-22 16:28:19 +00:00
|
|
|
buildInputs = [ autoconf automake curl jansson ];
|
2014-06-29 04:05:39 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
|
|
|
|
2014-09-22 16:28:19 +00:00
|
|
|
configureFlags = [ (if aesni then "--enable-aes-ni" else "--disable-aes-ni") ];
|
2014-06-29 04:05:39 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Multi-algo CPUMiner";
|
|
|
|
homepage = https://github.com/wolf9466/cpuminer-multi;
|
|
|
|
license = licenses.gpl2;
|
2015-12-05 21:41:25 +00:00
|
|
|
maintainers = [ maintainers.ehmry ];
|
2016-07-31 15:10:41 +00:00
|
|
|
platforms = platforms.linux;
|
2014-06-29 04:05:39 +00:00
|
|
|
};
|
2016-07-31 15:10:41 +00:00
|
|
|
}
|