mirror of
https://github.com/NixOS/nix.git
synced 2025-12-05 16:41:01 +01:00
`findIncludes' function. The current implementation is impure and therefore not correct: it gathers header file dependencies only once for a specific path (due to caching).
31 lines
647 B
Nix
31 lines
647 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;
|
|
};
|
|
|
|
/*
|
|
runCommand = {command}: {
|
|
name = "run-command";
|
|
builder = ./run-command.sh;
|
|
inherit command;
|
|
};
|
|
*/
|
|
|
|
findIncludes = {main}: stdenv.mkDerivation {
|
|
name = "find-includes";
|
|
builder = ./find-includes.sh;
|
|
inherit main;
|
|
};
|
|
|
|
link = {objects, programName ? "program"}: stdenv.mkDerivation {
|
|
name = "link";
|
|
builder = ./link.sh;
|
|
inherit objects programName;
|
|
};
|
|
|
|
}
|