mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
* 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.
This commit is contained in:
parent
15646244ba
commit
08de98f8b6
7 changed files with 43 additions and 4 deletions
|
|
@ -2,10 +2,10 @@ rec {
|
|||
|
||||
inherit (import /home/eelco/nixpkgs/pkgs/system/i686-linux.nix) stdenv;
|
||||
|
||||
compileC = {main}: stdenv.mkDerivation {
|
||||
compileC = {main, localIncludes ? []}: stdenv.mkDerivation {
|
||||
name = "compile-c";
|
||||
builder = ./compile-c.sh;
|
||||
inherit main;
|
||||
inherit main localIncludes;
|
||||
};
|
||||
|
||||
link = {objects}: stdenv.mkDerivation {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue