cgminer: Use standard OpenCL libraries.
This commit is contained in:
parent
971b731fc1
commit
d33072de3d
@ -1,5 +1,5 @@
|
|||||||
{ fetchgit, stdenv, pkgconfig, libtool, autoconf, automake
|
{ fetchgit, stdenv, pkgconfig, libtool, autoconf, automake
|
||||||
, curl, ncurses, amdappsdk, amdadlsdk, xorg, jansson }:
|
, curl, ncurses, ocl-icd, opencl-headers, xorg, jansson }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "3.7.2";
|
version = "3.7.2";
|
||||||
@ -13,17 +13,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
autoconf automake libtool curl ncurses amdappsdk amdadlsdk
|
autoconf automake libtool curl ncurses ocl-icd opencl-headers
|
||||||
xorg.libX11 xorg.libXext xorg.libXinerama jansson
|
xorg.libX11 xorg.libXext xorg.libXinerama jansson
|
||||||
];
|
];
|
||||||
configureScript = "./autogen.sh";
|
configureScript = "./autogen.sh";
|
||||||
configureFlags = [ "--enable-scrypt" "--enable-opencl" ];
|
configureFlags = [ "--enable-scrypt" "--enable-opencl" ];
|
||||||
NIX_LDFLAGS = "-lgcc_s -lX11 -lXext -lXinerama";
|
NIX_LDFLAGS = "-lgcc_s -lX11 -lXext -lXinerama";
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
ln -s ${amdadlsdk}/include/* ADL_SDK/
|
|
||||||
'';
|
|
||||||
|
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
gcc api-example.c -o cgminer-api
|
gcc api-example.c -o cgminer-api
|
||||||
'';
|
'';
|
||||||
|
@ -16993,9 +16993,7 @@ in
|
|||||||
inherit (python3Packages) python wrapPython pygments markdown;
|
inherit (python3Packages) python wrapPython pygments markdown;
|
||||||
};
|
};
|
||||||
|
|
||||||
cgminer = callPackage ../applications/misc/cgminer {
|
cgminer = callPackage ../applications/misc/cgminer { };
|
||||||
amdappsdk = amdappsdk28;
|
|
||||||
};
|
|
||||||
|
|
||||||
chirp = callPackage ../applications/radio/chirp {
|
chirp = callPackage ../applications/radio/chirp {
|
||||||
inherit (pythonPackages) pyserial pygtk;
|
inherit (pythonPackages) pyserial pygtk;
|
||||||
|
Loading…
Reference in New Issue
Block a user