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

34 lines
729 B
Nix
Raw Normal View History

{ lib, stdenv
2020-06-23 21:57:18 +00:00
, fetchFromGitHub
, curl
, jansson
, perl
, autoreconfHook
}:
stdenv.mkDerivation rec {
pname = "cpuminer";
2020-06-23 21:57:18 +00:00
version = "2.5.1";
2020-06-23 21:57:18 +00:00
src = fetchFromGitHub {
owner = "pooler";
repo = pname;
rev = "v${version}";
sha256 = "0f44i0z8rid20c2hiyp92xq0q0mjj537r05sa6vdbc0nl0a5q40i";
};
2016-07-31 02:06:37 +00:00
patchPhase = if stdenv.cc.isClang then "${perl}/bin/perl ./nomacro.pl" else null;
2020-06-23 21:57:18 +00: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 18:28:11 +00:00
license = licenses.gpl2;
platforms = platforms.all;
maintainers = with maintainers; [ pSub ];
};
}