summary refs log tree commit diff
path: root/pkgs/tools/misc/cpuminer-multi/default.nix
blob: c61e0ff00b3fda3c154e2040e9620be384b59e3c (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
31
{ stdenv, fetchgit, curl, jansson, autoconf, automake, openssl
, aesni ? true }:

let
  rev = "4230012da5d1cc491976c6f5e45da36db6d9f576";
  date = "20140619";
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;
    sha256 = "c19a5dd1bfdbbaec3729f61248e858a5d8701424fffe67fdabf8179ced9c110b";
  };

  buildInputs = [ autoconf automake curl jansson openssl ];

  preConfigure = ''
    ./autogen.sh
  '';

  configureFlags = if aesni then [ "--disable-aes-ni" ] else [ ];

  meta = with stdenv.lib; {
    description = "Multi-algo CPUMiner";
    homepage = https://github.com/wolf9466/cpuminer-multi;
    license = licenses.gpl2;
    maintainers = [ maintainers.emery ];
  };
}