18 stdenv.mkDerivation rec {
22 src = fetchFromGitHub {
26 sha256 = "0l1ms3nxnjzh4mpiadikvngcr9k3jnjqy3yna207za0va0c28dj5";
47 configureScript = "./autogen.sh";
61 # Workaround build failure on -fno-common toolchains like upstream
62 # gcc-10. Otherwise build fails as:
63 # ld: cgminer-driver-modminer.o:/build/source/miner.h:285:
64 # multiple definition of `bitforce_drv'; cgminer-cgminer.o:/build/source/miner.h:285:
66 env.NIX_CFLAGS_COMPILE = "-fcommon";
69 description = "CPU/GPU miner in c for bitcoin";
70 mainProgram = "cgminer";
71 homepage = "https://github.com/ckolivas/cgminer";
72 license = licenses.gpl3;
73 maintainers = with maintainers; [
77 platforms = platforms.linux;