3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/cgminer/default.nix

46 lines
1.3 KiB
Nix
Raw Normal View History

{ fetchgit, stdenv, pkgconfig, libtool, autoconf, automake
, curl, ncurses, ocl-icd, opencl-headers, xorg, jansson }:
2019-08-13 22:52:01 +01:00
stdenv.mkDerivation {
2013-12-13 09:15:35 +00:00
version = "3.7.2";
pname = "cgminer";
src = fetchgit {
url = "https://github.com/ckolivas/cgminer.git";
2013-12-13 09:15:35 +00:00
rev = "refs/tags/v3.7.2";
sha256 = "1xfzx91dpwjj1vmhas3v9ybs0p2i74lrhinijmpav15acfggm9fq";
};
nativeBuildInputs = [ pkgconfig ];
2013-12-13 09:15:35 +00:00
buildInputs = [
autoconf automake libtool curl ncurses ocl-icd opencl-headers
2013-12-13 09:15:35 +00:00
xorg.libX11 xorg.libXext xorg.libXinerama jansson
];
configureScript = "./autogen.sh";
2018-07-25 22:44:21 +01:00
configureFlags = [ "--enable-scrypt" "--enable-opencl" ];
NIX_LDFLAGS = "-lgcc_s -lX11 -lXext -lXinerama";
postBuild = ''
2013-12-13 09:15:35 +00:00
gcc api-example.c -o cgminer-api
'';
postInstall = ''
cp cgminer-api $out/bin/
chmod 444 $out/bin/*.cl
'';
meta = with stdenv.lib; {
description = "CPU/GPU miner in c for bitcoin";
longDescription= ''
This is a multi-threaded multi-pool GPU, FPGA and ASIC miner with ATI GPU
monitoring, (over)clocking and fanspeed support for bitcoin and derivative
coins. Do not use on multiple block chains at the same time!
'';
homepage = https://github.com/ckolivas/cgminer;
license = licenses.gpl3;
maintainers = [ maintainers.offline ];
platforms = stdenv.lib.platforms.linux;
hydraPlatforms = [];
};
}