2014-01-29 10:53:39 +00:00
|
|
|
{ fetchgit, stdenv, pkgconfig, libtool, autoconf, automake
|
2019-05-21 19:18:34 +01:00
|
|
|
, curl, ncurses, ocl-icd, opencl-headers, xorg, jansson }:
|
2013-06-16 22:38:12 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2013-12-13 09:15:35 +00:00
|
|
|
version = "3.7.2";
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cgminer";
|
2013-06-16 22:38:12 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/ckolivas/cgminer.git";
|
2013-12-13 09:15:35 +00:00
|
|
|
rev = "refs/tags/v3.7.2";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1xfzx91dpwjj1vmhas3v9ybs0p2i74lrhinijmpav15acfggm9fq";
|
2013-06-16 22:38:12 +01:00
|
|
|
};
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2013-12-13 09:15:35 +00:00
|
|
|
buildInputs = [
|
2019-05-21 19:18:34 +01:00
|
|
|
autoconf automake libtool curl ncurses ocl-icd opencl-headers
|
2013-12-13 09:15:35 +00:00
|
|
|
xorg.libX11 xorg.libXext xorg.libXinerama jansson
|
|
|
|
];
|
2013-06-16 22:38:12 +01:00
|
|
|
configureScript = "./autogen.sh";
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--enable-scrypt" "--enable-opencl" ];
|
2013-06-16 22:38:12 +01:00
|
|
|
NIX_LDFLAGS = "-lgcc_s -lX11 -lXext -lXinerama";
|
|
|
|
|
|
|
|
postBuild = ''
|
2013-12-13 09:15:35 +00:00
|
|
|
gcc api-example.c -o cgminer-api
|
2013-06-16 22:38:12 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
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!
|
|
|
|
'';
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/ckolivas/cgminer;
|
2013-06-16 22:38:12 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.offline ];
|
2014-01-29 10:53:39 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
hydraPlatforms = [];
|
2013-06-16 22:38:12 +01:00
|
|
|
};
|
|
|
|
}
|