hashrat: fix gcc-15 build failure (#488360)
This commit is contained in:
@@ -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)" ];
|
||||
|
||||
Reference in New Issue
Block a user