linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / tools / misc / cpuminer-multi / default.nix
blobfac8fbcfee974b95f5a0ff0392d2911dce0fc389
1 { lib, stdenv, fetchFromGitHub, curl, jansson, autoconf, automake
2 , aesni ? stdenv.hostPlatform.aesSupport }:
4 let
5   rev = "8393e03089c0abde61bd5d72aba8f926c3d6eca4";
6   date = "20160316";
7 in
8 stdenv.mkDerivation {
9   name = "cpuminer-multi-${date}-${lib.strings.substring 0 7 rev}";
11   src = fetchFromGitHub {
12     owner = "hyc";
13     repo = "cpuminer-multi";
14     inherit rev;
15     sha256 = "11dg4rra4dgfb9x6q85irn0hrkx2lkwyrdpgdh10pag09s3vhy4v";
16   };
18   buildInputs = [ autoconf automake curl jansson ];
20   preConfigure = ''
21     ./autogen.sh
22   '';
24   configureFlags = [ (if aesni then "--enable-aes-ni" else "--disable-aes-ni") ];
26   meta = with lib; {
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" ];
32   };