From 9f557c09a2162b9aa7a177e53eec299c2d9d4a01 Mon Sep 17 00:00:00 2001 From: Tom van Dijk <18gatenmaker6@gmail.com> Date: Fri, 14 Nov 2025 18:30:04 +0100 Subject: [PATCH] bootc: fix rustc 1.90.0 errors Upstream has `-D dead_code`, and since rustc 1.90 more dead code got detected in the tree, so this upstream patch fixes that. https://github.com/bootc-dev/bootc/commit/ff8b1b411270275c49ee512d54b27ed7a2fca112.patch Alternative: update bootc, but I'd consider this a cleaner ZHF fix than that. ZHF: #457852 --- pkgs/by-name/bo/bootc/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/bo/bootc/package.nix b/pkgs/by-name/bo/bootc/package.nix index 448c25b9b083..6cce0ae477f6 100644 --- a/pkgs/by-name/bo/bootc/package.nix +++ b/pkgs/by-name/bo/bootc/package.nix @@ -2,6 +2,7 @@ lib, rustPlatform, fetchFromGitHub, + fetchpatch2, libz, zstd, pkg-config, @@ -25,6 +26,13 @@ rustPlatform.buildRustPackage rec { hash = "sha256-TztsiC+DwD9yEAmjTuiuOi+Kf8WEYMsOVVnMKpSM3/g="; }; + patches = [ + (fetchpatch2 { + url = "https://github.com/bootc-dev/bootc/commit/ff8b1b411270275c49ee512d54b27ed7a2fca112.patch"; + hash = "sha256-7UKquq6ZargQUDGZk22X9Co92v8e995bL+tuAjvh/7c="; + }) + ]; + nativeBuildInputs = [ pkg-config ]; buildInputs = [