1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 15:02:42 +01:00
nix/examples/not-so-simple-header-auto/default.nix
Eelco Dolstra 7d386d5c29 * Automatically determine header file dependencies using the
`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).
2004-07-06 16:05:28 +00:00

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];
}