1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/pkgs/tools/misc/cpuminer-multi/default.nix
2014-08-27 12:47:36 +02:00

31 lines
821 B
Nix

{ 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 ];
};
}