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/default.nix
Eelco Dolstra 321be4649d * Linker accepts a name for the program.
* Better diagnostics.
2004-07-06 14:10:09 +00:00

14 lines
293 B
Nix

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