Skip to content

Commit

Permalink
Merge pull request #61823 from ambrop72/cgminer-cleanup
Browse files Browse the repository at this point in the history
Cgminer cleanup
  • Loading branch information
joachifm committed May 29, 2019
2 parents 7435625 + 08ea7c7 commit 7eb4b83
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 29 deletions.
8 changes: 2 additions & 6 deletions pkgs/applications/misc/cgminer/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ fetchgit, stdenv, pkgconfig, libtool, autoconf, automake
, curl, ncurses, amdappsdk, amdadlsdk, xorg, jansson }:
, curl, ncurses, ocl-icd, opencl-headers, xorg, jansson }:

stdenv.mkDerivation rec {
version = "3.7.2";
Expand All @@ -13,17 +13,13 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig ];
buildInputs = [
autoconf automake libtool curl ncurses amdappsdk amdadlsdk
autoconf automake libtool curl ncurses ocl-icd opencl-headers
xorg.libX11 xorg.libXext xorg.libXinerama jansson
];
configureScript = "./autogen.sh";
configureFlags = [ "--enable-scrypt" "--enable-opencl" ];
NIX_LDFLAGS = "-lgcc_s -lX11 -lXext -lXinerama";

preConfigure = ''
ln -s ${amdadlsdk}/include/* ADL_SDK/
'';

postBuild = ''
gcc api-example.c -o cgminer-api
'';
Expand Down
24 changes: 1 addition & 23 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8618,26 +8618,6 @@ in

### DEVELOPMENT / MISC

amdadlsdk = callPackage ../development/misc/amdadl-sdk { };

amdappsdk26 = amdappsdk.override {
version = "2.6";
};

amdappsdk27 = amdappsdk.override {
version = "2.7";
};

amdappsdk28 = amdappsdk.override {
version = "2.8";
};

amdappsdk = callPackage ../development/misc/amdapp-sdk { };

amdappsdkFull = amdappsdk.override {
samples = true;
};

amtk = callPackage ../development/libraries/amtk { };

avrlibc = callPackage ../development/misc/avr/libc {};
Expand Down Expand Up @@ -17071,9 +17051,7 @@ in
inherit (python3Packages) python wrapPython pygments markdown;
};

cgminer = callPackage ../applications/misc/cgminer {
amdappsdk = amdappsdk28;
};
cgminer = callPackage ../applications/misc/cgminer { };

chirp = callPackage ../applications/radio/chirp {
inherit (pythonPackages) pyserial pygtk;
Expand Down

0 comments on commit 7eb4b83

Please sign in to comment.