1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-05 16:41:01 +01:00
nix/lib/default.nix
Eelco Dolstra 7d386d5c29 * Automatically determine header file dependencies using the
`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).
2004-07-06 16:05:28 +00:00

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