14 inherit (darwin.apple_sdk_11_0.frameworks) Carbon CoreServices OpenCL;
16 stdenv.mkDerivation rec {
20 src = fetchFromGitHub {
24 hash = "sha256-kFjUAOs92xExCV/ph81TFvgRXC6ZRi1m0G51c4JmeMA=";
32 substituteAllInPlace src/donate.h
33 substituteInPlace cmake/OpenSSL.cmake \
34 --replace "set(OPENSSL_USE_STATIC_LIBS TRUE)" "set(OPENSSL_USE_STATIC_LIBS FALSE)"
46 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
57 install -vD xmrig $out/bin/xmrig
62 # https://github.com/NixOS/nixpkgs/issues/245534
63 hardeningDisable = [ "fortify" ];
66 description = "Monero (XMR) CPU miner";
67 homepage = "https://github.com/xmrig/xmrig";
68 license = licenses.gpl3Plus;
69 mainProgram = "xmrig";
70 platforms = platforms.unix;
71 maintainers = with maintainers; [ kim0 ];