From ce4117f12e8a0e343ca6181f3aeac2d3aad520e6 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 3 Sep 2026 17:23:26 +0200 Subject: [PATCH] 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 --- pkgs/by-name/uc/ucode/package.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/by-name/uc/ucode/package.nix b/pkgs/by-name/uc/ucode/package.nix index a8309fbc4e26..ed014133c91d 100644 --- a/pkgs/by-name/uc/ucode/package.nix +++ b/pkgs/by-name/uc/ucode/package.nix @@ -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 ];