mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-14 22:04:27 +01:00
11 lines
232 B
Bash
11 lines
232 B
Bash
|
source $stdenv/setup
|
||
|
|
||
|
ensureDir $out/etc
|
||
|
|
||
|
sources_=($sources)
|
||
|
targets_=($targets)
|
||
|
for ((i = 0; i < ${#targets_[@]}; i++)); do
|
||
|
ensureDir $out/etc/$(dirname ${targets_[$i]})
|
||
|
ln -s ${sources_[$i]} $out/etc/${targets_[$i]}
|
||
|
done
|