1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-14 22:42:41 +01:00
nix/examples/not-so-simple-header/default.nix
Eelco Dolstra 0920fe3038 * Deal with directory components in header file references (e.g.,
`#include "foo/../bar/bla.h"') by building an appropriate tree of
  symlinks.
2004-07-06 13:45:14 +00:00

14 lines
270 B
Nix

let {
inherit (import ../../lib) compileC link;
hello = link {objects = compileC {
main = ./foo/hello.c;
localIncludes = [
[./foo/fnord/indirect.h "fnord/indirect.h"]
[./bar/hello.h "fnord/../../bar/hello.h"]
];
};};
body = [hello];
}