2014-09-22 18:28:19 +02:00
|
|
|
{ stdenv, fetchgit, curl, jansson, autoconf, automake
|
2014-06-29 06:05:39 +02:00
|
|
|
, aesni ? true }:
|
|
|
|
|
|
|
|
let
|
2014-09-22 18:28:19 +02:00
|
|
|
rev = "977dad27e18627e5b723800f5f4201e385fe0d2e";
|
|
|
|
date = "20140723";
|
2014-06-29 06:05:39 +02: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;
|
2014-09-22 18:28:19 +02:00
|
|
|
sha256 = "9c438c6cd9f40273822f3d3103a370e43e8a40368695ed5e01ae87297dce7843";
|
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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Multi-algo CPUMiner";
|
|
|
|
homepage = https://github.com/wolf9466/cpuminer-multi;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.emery ];
|
|
|
|
};
|
|
|
|
}
|