blob: 3fbdcfae0fe4762d442c1267af38e9d2de17b2b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ lib, stdenv, fetchFromGitHub, curl, jansson, autoconf, automake
, aesni ? stdenv.hostPlatform.aesSupport }:
stdenv.mkDerivation {
pname = "cpuminer-multi";
version = "unstable-2016-03-16";
src = fetchFromGitHub {
owner = "hyc";
repo = "cpuminer-multi";
rev = "8393e03089c0abde61bd5d72aba8f926c3d6eca4";
sha256 = "11dg4rra4dgfb9x6q85irn0hrkx2lkwyrdpgdh10pag09s3vhy4v";
};
buildInputs = [ autoconf automake curl jansson ];
preConfigure = ''
./autogen.sh
'';
configureFlags = [ (if aesni then "--enable-aes-ni" else "--disable-aes-ni") ];
meta = with lib; {
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
platforms = [ "x86_64-linux" ];
};
}
|