nixpkgs/pkgs/tools/misc/cpuminer-multi/default.nix

34 lines
955 B
Nix
Raw Normal View History

{ stdenv, fetchgit, curl, jansson, autoconf, automake
, aesni ? stdenv.hostPlatform.aesSupport }:
2014-06-29 05:05:39 +01:00
let
2016-07-31 16:10:41 +01:00
rev = "8393e03089c0abde61bd5d72aba8f926c3d6eca4";
date = "20160316";
2014-06-29 05:05:39 +01:00
in
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
2014-06-29 05:05:39 +01:00
name = "cpuminer-multi-${date}-${stdenv.lib.strings.substring 0 7 rev}";
src = fetchgit {
inherit rev;
url = "https://github.com/wolf9466/cpuminer-multi.git";
2016-07-31 16:10:41 +01:00
sha256 = "11dg4rra4dgfb9x6q85irn0hrkx2lkwyrdpgdh10pag09s3vhy4v";
2014-06-29 05:05:39 +01:00
};
buildInputs = [ autoconf automake curl jansson ];
2014-06-29 05:05:39 +01:00
preConfigure = ''
./autogen.sh
'';
configureFlags = [ (if aesni then "--enable-aes-ni" else "--disable-aes-ni") ];
2014-06-29 05:05:39 +01:00
meta = with stdenv.lib; {
description = "Multi-algo CPUMiner";
homepage = "https://github.com/wolf9466/cpuminer-multi";
2014-06-29 05:05:39 +01:00
license = licenses.gpl2;
maintainers = [ maintainers.ehmry ];
# does not build on i686 https://github.com/lucasjones/cpuminer-multi/issues/27
platforms = [ "x86_64-linux" ];
2014-06-29 05:05:39 +01:00
};
2016-07-31 16:10:41 +01:00
}