1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 06:52:43 +01:00
nix/lib/default.nix
Eelco Dolstra 08de98f8b6 * Header files that are used by a compilation must be declared
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.
2004-07-06 12:27:19 +00:00

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;
};
}