mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 06:52:43 +01:00
* Deal with directory components in header file references (e.g.,
`#include "foo/../bar/bla.h"') by building an appropriate tree of symlinks.
This commit is contained in:
parent
08de98f8b6
commit
0920fe3038
6 changed files with 87 additions and 7 deletions
14
examples/not-so-simple-header/default.nix
Normal file
14
examples/not-so-simple-header/default.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
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];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue