Commit 2cdf8d6a authored by K900's avatar K900
Browse files

linuxManualConfig: reinstate Rust

structuredAttrs strikes again.
parent 09af5ff6
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -245,11 +245,13 @@ lib.makeOverridable (
          rust-bindgen-unwrapped
        ];

        env = {
          RUST_LIB_SRC = lib.optionalString withRust rustPlatform.rustLibSrc;

          # avoid leaking Rust source file names into the final binary, which adds
          # a false dependency on rust-lib-src on targets with uncompressed kernels
          KRUSTFLAGS = lib.optionalString withRust "--remap-path-prefix ${rustPlatform.rustLibSrc}=/";
        };

        patches =
          # kernelPatches can contain config changes and no actual patch