2014-01-13 00:02:30 +01:00
|
|
|
{ stdenv, fetchurl, curl, jansson }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cpuminer-${version}";
|
2014-07-17 00:15:13 +02:00
|
|
|
version = "2.4";
|
2014-01-13 00:02:30 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/cpuminer/pooler-${name}.tar.gz";
|
2014-07-17 00:15:13 +02:00
|
|
|
sha256 = "0yl3ca31ck732f4551svxw6lx1lrjr7rhld5v09v0bgm3z07nnrx";
|
2014-01-13 00:02:30 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ curl jansson ];
|
|
|
|
|
2014-07-17 00:15:13 +02:00
|
|
|
configureFlags = [ "CFLAGS=-O3" ];
|
|
|
|
|
2014-01-13 00:02:30 +01:00
|
|
|
meta = {
|
|
|
|
homepage = https://github.com/pooler/cpuminer;
|
|
|
|
description = "CPU miner for Litecoin and Bitcoin";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|