mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 22:42:41 +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
10
lib/link.sh
Normal file
10
lib/link.sh
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
. $stdenv/setup
|
||||
|
||||
objs=
|
||||
for i in "$objects"; do
|
||||
obj=$i/*.o
|
||||
objs="$objs $obj"
|
||||
done
|
||||
|
||||
mkdir $out
|
||||
gcc -o $out/program $objs
|
||||
Loading…
Add table
Add a link
Reference in a new issue