···3838 '';
39394040 meta = with lib; {
4141+ # Does not build against gcc-13. No development activity upstream
4242+ # for past few years.
4343+ broken = true;
4144 description = "Unified All-in-one Monero miner";
4245 homepage = "https://github.com/fireice-uk/xmr-stak";
4346 license = licenses.gpl3Plus;
+18-3
pkgs/applications/misc/xmrig/moneroocean.nix
···11-{ stdenv, fetchFromGitHub, lib, xmrig }:
11+{ lib
22+, stdenv
33+, fetchFromGitHub
44+, fetchpatch
55+, xmrig
66+}:
2738xmrig.overrideAttrs (oldAttrs: rec {
49 pname = "xmrig-mo";
55- version = "6.20.0-mo1";
1010+ version = "6.21.0-mo2";
611712 src = fetchFromGitHub {
813 owner = "MoneroOcean";
914 repo = "xmrig";
1015 rev = "v${version}";
1111- sha256 = "sha256-yHAipyZJXwH21u4YwjUqDCsXHVrI+eSnp4Iqt3AZC9A=";
1616+ hash = "sha256-OKyJcmhlY8gfDKyBf83KHhokp4qA8EDyessTwKReaD8=";
1217 };
1818+1919+ patches = [
2020+ # Fix build against gcc-13 due to missing <stdexcept> include
2121+ # https://github.com/MoneroOcean/xmrig/pull/123
2222+ (fetchpatch {
2323+ name = "gcc-13.patch";
2424+ url = "https://github.com/MoneroOcean/xmrig/commit/7d3ea51d68049c35e9d4c75732c751eefbc5ab29.patch";
2525+ hash = "sha256-iNrtZ8LxNJMzn8kXLhYGEFAy0ughfOZobDVRImpVPC0=";
2626+ })
2727+ ];
13281429 meta = with lib; {
1530 description = "A fork of the XMRig CPU miner with support for algorithm switching";