cgminer: 3.7.2 -> 4.11.1
This commit is contained in:
parent
c9462630bd
commit
2c3bf6b8f3
@ -1,45 +1,49 @@
|
|||||||
{ fetchgit, stdenv, pkgconfig, libtool, autoconf, automake
|
{ stdenv
|
||||||
, curl, ncurses, ocl-icd, opencl-headers, xorg, jansson }:
|
, fetchFromGitHub
|
||||||
|
, pkgconfig
|
||||||
|
, libtool
|
||||||
|
, autoconf
|
||||||
|
, automake
|
||||||
|
, curl
|
||||||
|
, ncurses
|
||||||
|
, ocl-icd
|
||||||
|
, opencl-headers
|
||||||
|
, libusb1
|
||||||
|
, xorg
|
||||||
|
, jansson }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
version = "3.7.2";
|
|
||||||
pname = "cgminer";
|
pname = "cgminer";
|
||||||
|
version = "4.11.1";
|
||||||
|
|
||||||
src = fetchgit {
|
src = fetchFromGitHub {
|
||||||
url = "https://github.com/ckolivas/cgminer.git";
|
owner = "ckolivas";
|
||||||
rev = "refs/tags/v3.7.2";
|
repo = "cgminer";
|
||||||
sha256 = "1xfzx91dpwjj1vmhas3v9ybs0p2i74lrhinijmpav15acfggm9fq";
|
rev = "v${version}";
|
||||||
|
sha256 = "0l1ms3nxnjzh4mpiadikvngcr9k3jnjqy3yna207za0va0c28dj5";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [
|
buildInputs = [ autoconf automake libtool curl ncurses ocl-icd opencl-headers
|
||||||
autoconf automake libtool curl ncurses ocl-icd opencl-headers
|
xorg.libX11 xorg.libXext xorg.libXinerama jansson libusb1 ];
|
||||||
xorg.libX11 xorg.libXext xorg.libXinerama jansson
|
|
||||||
];
|
|
||||||
configureScript = "./autogen.sh";
|
configureScript = "./autogen.sh";
|
||||||
configureFlags = [ "--enable-scrypt" "--enable-opencl" ];
|
configureFlags = [ "--enable-scrypt"
|
||||||
NIX_LDFLAGS = "-lgcc_s -lX11 -lXext -lXinerama";
|
"--enable-opencl"
|
||||||
|
"--enable-bitforce"
|
||||||
postBuild = ''
|
"--enable-icarus"
|
||||||
gcc api-example.c -o cgminer-api
|
"--enable-modminer"
|
||||||
'';
|
"--enable-ztex"
|
||||||
|
"--enable-avalon"
|
||||||
postInstall = ''
|
"--enable-klondike"
|
||||||
cp cgminer-api $out/bin/
|
"--enable-keccak"
|
||||||
chmod 444 $out/bin/*.cl
|
"--enable-bflsc"];
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "CPU/GPU miner in c for bitcoin";
|
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";
|
homepage = "https://github.com/ckolivas/cgminer";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = [ maintainers.offline ];
|
maintainers = with maintainers; [ offline mmahut ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
hydraPlatforms = [];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user