1 { lib, stdenv, fetchFromGitHub, curl, jansson, autoconf, automake
2 , aesni ? stdenv.hostPlatform.aesSupport }:
5 rev = "8393e03089c0abde61bd5d72aba8f926c3d6eca4";
9 name = "cpuminer-multi-${date}-${lib.strings.substring 0 7 rev}";
11 src = fetchFromGitHub {
13 repo = "cpuminer-multi";
15 sha256 = "11dg4rra4dgfb9x6q85irn0hrkx2lkwyrdpgdh10pag09s3vhy4v";
18 buildInputs = [ autoconf automake curl jansson ];
24 configureFlags = [ (if aesni then "--enable-aes-ni" else "--disable-aes-ni") ];
27 description = "Multi-algo CPUMiner";
28 homepage = "https://github.com/wolf9466/cpuminer-multi";
29 license = licenses.gpl2;
30 # does not build on i686 https://github.com/lucasjones/cpuminer-multi/issues/27
31 platforms = [ "x86_64-linux" ];