rearrange without changing semantics and "export" REMOVE_KERNEL
This commit is contained in:
parent
b577ae1ae5
commit
c5a327c611
14
flake.nix
14
flake.nix
|
@ -68,22 +68,22 @@
|
|||
hardeningDisable = [ "strictoverflow" ];
|
||||
|
||||
env = rec {
|
||||
# build related flags
|
||||
# just in case you want to disable building with the LLVM toolchain
|
||||
# **DO NOT SET THIS TO '0'**
|
||||
# **COMMENT IT OUT INSTEAD**
|
||||
# because, for some reason, setting `LLVM` to '0' still counts... :/
|
||||
LLVM = 1;
|
||||
# build related flags (for the script)
|
||||
BUILD_WITH_RUST = 0;
|
||||
CLEAN_BUILD = 0;
|
||||
INSTALL_ZE_KERNEL = 0;
|
||||
REMOVE_KERNEL = 0;
|
||||
|
||||
# needed by Rust bindgen
|
||||
LIBCLANG_PATH = pkgs.lib.makeLibraryPath [ llvmPkgs.libclang.lib ];
|
||||
# because `grep gcc "$(nix-store -r $(command -v clang))/nix-support/libcxx-cxxflags"` matches
|
||||
# but `grep clang "$(nix-store -r $(command -v clang))/nix-support/libcxx-cxxflags"` **DOES NOT MATCH**
|
||||
KCFLAGS = "-isystem ${LIBCLANG_PATH}/clang/${llvmVersion}/include";
|
||||
|
||||
# just in case you want to disable building with the LLVM toolchain
|
||||
# **DO NOT SET THIS TO '0'**
|
||||
# **COMMENT IT OUT INSTEAD**
|
||||
# because, for some reason, setting `LLVM` to '0' still counts... :/
|
||||
LLVM = 1;
|
||||
};
|
||||
|
||||
# **ONLY UNCOMMENT THIS IF YOU ARE _NOT_ USING HOME-MANAGER AND GET LOCALE ERRORS/WARNINGS**
|
||||
|
|
Loading…
Reference in New Issue