From e768d95f414fa3ed2643b4b25fd15eafa3446254 Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Fri, 3 May 2024 11:51:07 +0200 Subject: [PATCH] linux/generic.nix: Fix CONFIG_RUST I thought it was module based, but it wasn't. Fixes https://github.com/NixOS/nixpkgs/pull/306790#issuecomment-2092485576 > This has broken [...] Rust support --- pkgs/os-specific/linux/kernel/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/kernel/generic.nix b/pkgs/os-specific/linux/kernel/generic.nix index 631217735d8f..37c138402d00 100644 --- a/pkgs/os-specific/linux/kernel/generic.nix +++ b/pkgs/os-specific/linux/kernel/generic.nix @@ -221,7 +221,7 @@ let config = { CONFIG_MODULES = "y"; CONFIG_FW_LOADER = "m"; - CONFIG_RUST = lib.mkIf withRust "y"; + CONFIG_RUST = if withRust then "y" else "n"; }; });