ucode: fix build w/ glibc-2.44

Also apply two more bugfixes to correctly apply the patch fixing the
issue.

Failing Hydra build: https://hydra.nixos.org/build/344213888
This commit is contained in:
Maximilian Bosch
2026-09-03 17:23:26 +02:00
parent facdfe4dab
commit ce4117f12e

View File

@@ -5,6 +5,7 @@
cmake,
pkg-config,
json_c,
fetchpatch,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -18,6 +19,22 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-V8WGd4rSuCtGIA5oTfnagp0Dmh5FNG87/MJSeILtbM4=";
};
patches = [
(fetchpatch {
url = "https://github.com/jow-/ucode/commit/4d81e6c13506599261208786cfe4ee068f346dcd.patch";
hash = "sha256-RZhD422ue00bqam4n7jAynPDJdOzOFJnf34YbT2wH/s=";
})
(fetchpatch {
url = "https://github.com/jow-/ucode/commit/a7ead3169ebf355e66b399aca1dd3a5ce29e1e5b.patch";
hash = "sha256-sc+jSAlix1jE9Cb4MMuqI7VHG6h+zpCL7UZ84awOL6M=";
})
# fix build w/ glibc-2.44
(fetchpatch {
url = "https://github.com/jow-/ucode/commit/beafcff845fcdbb46308ee54422661e80300079d.patch";
hash = "sha256-JcBk8kJHDlHLRuVR2fmsSfWqVmbFZMPF16+nPp6QFf4=";
})
];
buildInputs = [
json_c
];