9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 sha256 = "0f44i0z8rid20c2hiyp92xq0q0mjj537r05sa6vdbc0nl0a5q40i";
20 patchPhase = if stdenv.cc.isClang then "${perl}/bin/perl ./nomacro.pl" else null;
22 nativeBuildInputs = [ autoreconfHook ];
23 buildInputs = [ curl jansson ];
25 configureFlags = [ "CFLAGS=-O3" ];
28 homepage = "https://github.com/pooler/cpuminer";
29 description = "CPU miner for Litecoin and Bitcoin";
30 license = licenses.gpl2;
31 platforms = platforms.all;
32 maintainers = with maintainers; [ pSub ];