forked from lix-project/lix
19 lines
365 B
Nix
19 lines
365 B
Nix
|
let {
|
||
|
|
||
|
inherit (import ../../../lib) compileC link;
|
||
|
|
||
|
inherit (import ../aterm {}) libATerm;
|
||
|
|
||
|
compile = fn: compileC {
|
||
|
main = fn;
|
||
|
localIncludes = "auto";
|
||
|
cFlags = "-I../aterm";
|
||
|
};
|
||
|
|
||
|
fib = link {objects = compile ./fib.c; libraries = libATerm;};
|
||
|
|
||
|
primes = link {objects = compile ./primes.c; libraries = libATerm;};
|
||
|
|
||
|
body = [fib primes];
|
||
|
}
|