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

34 lines
729 B
Nix
Raw Normal View History

{ lib, stdenv
2020-06-23 22:57:18 +01:00
, 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" ];
meta = with 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 ];
};
}