git.iko.soy/typeable/nixpkgs
on master help sign in
ethminer: init at 0.18.0-rc.0

- Tested on NixOS

commit3bfff36bdc05fcc79f6294cf9583cfd8520ba611 authorFernando J Pando <fernando.pando@stelligent.com> dateThu 21 Mar 2019, 17:39 (8 years ago) parentc1d65d6
2 files changed+63
pkgs/tools/misc/ethminer/default.nix+61 pkgs/top-level/all-packages.nix+2
pkgs/tools/misc/ethminer/default.nixnew file+61
@@ -0,0 +1,61 @@
1+{ stdenv, fetchFromGitHub, opencl-headers, cmake, jsoncpp, boost, makeWrapper,
2+ cudatoolkit, mesa, ethash, opencl-info, ocl-icd, openssl, pkg-config, cli11 }:
3+
4+stdenv.mkDerivation rec {
5+ pname = "ethminer";
6+ version = "0.18.0-rc.0";
7+
8+ src =
9+ fetchFromGitHub {
10+ owner = "ethereum-mining";
11+ repo = "ethminer";
12+ rev = "v${version}";
13+ sha256 = "0gwnwxahjfwr4d2aci7y3w206nc5ifssl28ildva98ys0d24wy7z";
14+ fetchSubmodules = true;
15+ };
16+
17+ # NOTE: dbus is broken
18+ cmakeFlags = [
19+ "-DHUNTER_ENABLED=OFF"
20+ "-DETHASHCUDA=ON"
21+ "-DAPICORE=ON"
22+ "-DETHDBUS=OFF"
23+ "-DCMAKE_BUILD_TYPE=Release"
24+ ];
25+
26+ nativeBuildInputs = [
27+ cmake
28+ pkg-config
29+ makeWrapper
30+ ];
31+
32+ buildInputs = [
33+ cli11
34+ boost
35+ opencl-headers
36+ mesa
37+ cudatoolkit
38+ ethash
39+ opencl-info
40+ ocl-icd
41+ openssl
42+ jsoncpp
43+ ];
44+
45+ preConfigure = ''
46+ sed -i 's/_lib_static//' libpoolprotocols/CMakeLists.txt
47+ '';
48+
49+ postInstall = ''
50+ wrapProgram $out/bin/ethminer --prefix LD_LIBRARY_PATH : /run/opengl-driver/lib
51+ '';
52+
53+ meta = with stdenv.lib; {
54+ description = "Ethereum miner with OpenCL, CUDA and stratum support";
55+ homepage = https://github.com/ethereum-mining/ethminer;
56+ platforms = [ "x86_64-linux" ];
57+ maintainers = with maintainers; [ nand0p ];
58+ license = licenses.gpl2;
59+ };
60+
61+}
pkgs/top-level/all-packages.nix+2
@@ -2015,6 +2015,8 @@ in
20152015
20162016 cpuminer-multi = callPackage ../tools/misc/cpuminer-multi { };
20172017
2018+ ethminer = callPackage ../tools/misc/ethminer { };
2019+
20182020 cuetools = callPackage ../tools/cd-dvd/cuetools { };
20192021
20202022 u3-tool = callPackage ../tools/filesystems/u3-tool { };