1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-20 23:28:26 -04:00
nix/make/examples/aterm/test/default.nix

16 lines
288 B
Nix
Raw Normal View History

2005-08-14 06:19:55 -04:00
with (import ../../../lib);
2005-08-14 06:19:55 -04:00
let {
inherit (import ../aterm {}) libATerm;
2005-08-14 06:19:55 -04:00
compileTest = main: link {
objects = [(compileC {inherit main; localIncludePath = [ ../aterm ];})];
2005-08-14 06:19:55 -04:00
libraries = libATerm;
};
2005-08-14 06:19:55 -04:00
body = [
(compileTest ./fib.c)
(compileTest ./primes.c)
];
}