mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
`findIncludes' function. The current implementation is impure and therefore not correct: it gathers header file dependencies only once for a specific path (due to caching).
11 lines
255 B
Nix
11 lines
255 B
Nix
let {
|
|
|
|
inherit (import ../../lib) compileC findIncludes link;
|
|
|
|
hello = link {programName = "hello"; objects = compileC {
|
|
main = ./foo/hello.c;
|
|
localIncludes = import (findIncludes {main = toString ./foo/hello.c;});
|
|
};};
|
|
|
|
body = [hello];
|
|
}
|