···8899diff --git a/src/clang_parser.cpp b/src/clang_parser.cpp
1010index b1db8ff..0cfb01f 100644
1111---- a/src/clang_parser.cpp
1212-+++ b/src/clang_parser.cpp
1111+--- a/src/utils.cpp
1212++++ b/src/utils.cpp
1313@@ -140,6 +140,9 @@ static bool is_dir(const std::string& path)
1414 // Both ksrc and kobj are guaranteed to be != "", if at least some trace of kernel sources was found.
1515- static std::tuple<std::string, std::string> get_kernel_dirs(const struct utsname& utsname)
1515+ std::tuple<std::string, std::string> get_kernel_dirs(const struct utsname& utsname)
1616 {
1717+ // NB (aseipp): special case the kernel directory for nix
1818+ return { "@NIX_KERNEL_SRC@/source", "@NIX_KERNEL_SRC@/build" };