3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/cpuminer/default.nix

34 lines
731 B
Nix
Raw Normal View History

2020-06-23 22:57:18 +01:00
{ stdenv
, fetchFromGitHub
, curl
, jansson
, perl
, autoreconfHook
}:
stdenv.mkDerivation rec {
pname = "cpuminer";
2020-06-23 22:57:18 +01:00
version = "2.5.1";
2020-06-23 22:57:18 +01:00
src = fetchFromGitHub {
owner = "pooler";
repo = pname;
rev = "v${version}";
sha256 = "0f44i0z8rid20c2hiyp92xq0q0mjj537r05sa6vdbc0nl0a5q40i";
};
2016-07-31 03:06:37 +01:00
patchPhase = if stdenv.cc.isClang then "${perl}/bin/perl ./nomacro.pl" else null;
2020-06-23 22:57:18 +01:00
buildInputs = [ curl jansson autoreconfHook ];
configureFlags = [ "CFLAGS=-O3" ];
2015-06-01 19:28:11 +01:00
meta = with stdenv.lib; {
homepage = "https://github.com/pooler/cpuminer";
description = "CPU miner for Litecoin and Bitcoin";
2015-06-01 19:28:11 +01:00
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ pSub ];
};
}