mirror of
https://github.com/NixOS/nix.git
synced 2025-11-15 15:02:42 +01:00
17 lines
391 B
Nix
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;
|
|
};
|
|
|
|
}
|