From f45793f284e8fcc60b1367ae19e2fd55214e8df1 Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Mon, 13 Jan 2014 00:02:30 +0100 Subject: [PATCH] Add cpuminer, multi-threaded Litecoin and Bitcoin miner --- pkgs/tools/misc/cpuminer/default.nix | 20 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/tools/misc/cpuminer/default.nix diff --git a/pkgs/tools/misc/cpuminer/default.nix b/pkgs/tools/misc/cpuminer/default.nix new file mode 100644 index 000000000000..6b32d9531d38 --- /dev/null +++ b/pkgs/tools/misc/cpuminer/default.nix @@ -0,0 +1,20 @@ +{ stdenv, fetchurl, curl, jansson }: + +stdenv.mkDerivation rec { + name = "cpuminer-${version}"; + version = "2.3.2"; + + src = fetchurl { + url = "mirror://sourceforge/cpuminer/pooler-${name}.tar.gz"; + sha256 = "10xnb58w90kq8xgnkk0z99c0b9p9pxhkhkcs9dml5pgxfrlakckg"; + }; + + buildInputs = [ curl jansson ]; + + meta = { + homepage = https://github.com/pooler/cpuminer; + description = "CPU miner for Litecoin and Bitcoin"; + license = stdenv.lib.licenses.gpl2; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 46a41ed45459..66df6460a1da 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -697,6 +697,8 @@ let cowsay = callPackage ../tools/misc/cowsay { }; + cpuminer = callPackage ../tools/misc/cpuminer { }; + cuetools = callPackage ../tools/cd-dvd/cuetools { }; unifdef = callPackage ../development/tools/misc/unifdef { };