mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 06:52:43 +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.
8 lines
131 B
Nix
8 lines
131 B
Nix
let {
|
|
|
|
inherit (import ../../lib) compileC link;
|
|
|
|
hello = link {objects = compileC {main = ./hello.c;};};
|
|
|
|
body = [hello];
|
|
}
|