mirror of
https://github.com/NixOS/nix.git
synced 2025-11-24 19:29:36 +01:00
* Some trivial Nix Make examples.
This commit is contained in:
parent
a2e33d200e
commit
15646244ba
5 changed files with 45 additions and 0 deletions
17
lib/default.nix
Normal file
17
lib/default.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
rec {
|
||||
|
||||
inherit (import /home/eelco/nixpkgs/pkgs/system/i686-linux.nix) stdenv;
|
||||
|
||||
compileC = {main}: stdenv.mkDerivation {
|
||||
name = "compile-c";
|
||||
builder = ./compile-c.sh;
|
||||
inherit main;
|
||||
};
|
||||
|
||||
link = {objects}: stdenv.mkDerivation {
|
||||
name = "link";
|
||||
builder = ./link.sh;
|
||||
inherit objects;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue