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

23 lines
557 B
Nix
Raw Normal View History

{ stdenv, fetchurl, curl, jansson }:
stdenv.mkDerivation rec {
name = "cpuminer-${version}";
2015-03-09 19:27:59 +01:00
version = "2.4.1";
src = fetchurl {
url = "mirror://sourceforge/cpuminer/pooler-${name}.tar.gz";
2015-03-09 19:27:59 +01:00
sha256 = "0grj0swh1q3c3bj3yxji80yhxb09yz62x1n5h8z7c3azq4rrv2w1";
};
buildInputs = [ curl jansson ];
configureFlags = [ "CFLAGS=-O3" ];
meta = {
homepage = https://github.com/pooler/cpuminer;
description = "CPU miner for Litecoin and Bitcoin";
license = stdenv.lib.licenses.gpl2;
platforms = stdenv.lib.platforms.all;
};
}