1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-15 06:52:43 +01:00

* Some trivial Nix Make examples.

This commit is contained in:
Eelco Dolstra 2004-07-06 11:43:37 +00:00
parent a2e33d200e
commit 15646244ba
5 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,8 @@
let {
inherit (import ../../lib) compileC link;
hello = link {objects = compileC {main = ./hello.c;};};
body = [hello];
}

7
examples/trivial/hello.c Normal file
View file

@ -0,0 +1,7 @@
#include <stdio.h>
int main(int argc, char * * argv)
{
printf("Hello World\n");
return 0;
}