2014-01-12 23:02:30 +00:00
|
|
|
{ stdenv, fetchurl, curl, jansson }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cpuminer-${version}";
|
2014-07-16 23:15:13 +01:00
|
|
|
version = "2.4";
|
2014-01-12 23:02:30 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/cpuminer/pooler-${name}.tar.gz";
|
2014-07-16 23:15:13 +01:00
|
|
|
sha256 = "0yl3ca31ck732f4551svxw6lx1lrjr7rhld5v09v0bgm3z07nnrx";
|
2014-01-12 23:02:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ curl jansson ];
|
|
|
|
|
2014-07-16 23:15:13 +01:00
|
|
|
configureFlags = [ "CFLAGS=-O3" ];
|
|
|
|
|
2014-01-12 23:02:30 +00: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;
|
|
|
|
};
|
|
|
|
}
|