1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 15:02:42 +01:00
nix/lib/default.nix
Eelco Dolstra 321be4649d * Linker accepts a name for the program.
* Better diagnostics.
2004-07-06 14:10:09 +00:00

17 lines
391 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, programName ? "program"}: stdenv.mkDerivation {
name = "link";
builder = ./link.sh;
inherit objects programName;
};
}