mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +01:00
explicitly. If you forget a dependency, it's simply not visible to the compiler, and so the compilation fails. This is a big plus over conventional Make.
11 lines
186 B
Nix
11 lines
186 B
Nix
let {
|
|
|
|
inherit (import ../../lib) compileC link;
|
|
|
|
hello = link {objects = compileC {
|
|
main = ./hello.c;
|
|
localIncludes = [ [./hello.h "hello.h"] ];
|
|
};};
|
|
|
|
body = [hello];
|
|
}
|