Unverified Commit ded81a65 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

hashrat: fix `gcc-15` build failure (#488360)

parents 9e2d7fd2 e4374a3b
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  versionCheckHook,
  nix-update-script,
}:
@@ -17,6 +18,16 @@ stdenv.mkDerivation (finalAttrs: {
    hash = "sha256-nGaOVvy8caySohCGyGdnxXsv2DuqFPRi4JJLlZy+q8o=";
  };

  patches = [
    # Upstream fix for gcc-15 build failure:
    #   https://github.com/ColumPaget/Hashrat/pull/33
    (fetchpatch {
      name = "gcc-15.patch";
      url = "https://github.com/ColumPaget/Hashrat/commit/5add4a28f34237bf49f37febcf3366d45d4cea4f.patch";
      hash = "sha256-+ydRQJfoZx7g6VzDDs2RWKRmWs5kBNgYfFKfzsAaskE=";
    })
  ];

  configureFlags = [ "--enable-xattr" ];

  makeFlags = [ "PREFIX=$(out)" ];