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 { };