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.
17 lines
354 B
Nix
17 lines
354 B
Nix
rec {
|
|
|
|
inherit (import /home/eelco/nixpkgs/pkgs/system/i686-linux.nix) stdenv;
|
|
|
|
compileC = {main, localIncludes ? []}: stdenv.mkDerivation {
|
|
name = "compile-c";
|
|
builder = ./compile-c.sh;
|
|
inherit main localIncludes;
|
|
};
|
|
|
|
link = {objects}: stdenv.mkDerivation {
|
|
name = "link";
|
|
builder = ./link.sh;
|
|
inherit objects;
|
|
};
|
|
|
|
}
|