mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
24 lines
338 B
Bash
24 lines
338 B
Bash
|
#! @shell@ -e
|
||
|
|
||
|
export PATH=/bin:/usr/bin # !!! impure
|
||
|
|
||
|
mkdir $out
|
||
|
mkdir $out/tmp
|
||
|
cd $out/tmp
|
||
|
|
||
|
expr=$out/default.nix
|
||
|
echo '[' > $expr
|
||
|
|
||
|
nr=0
|
||
|
for i in $inputs; do
|
||
|
echo "unpacking $i"
|
||
|
@bunzip2@ < $i | tar xvf -
|
||
|
mv * ../$nr # !!! hacky
|
||
|
echo "(import ./$nr)" >> $expr
|
||
|
nr=$(($nr + 1))
|
||
|
done
|
||
|
|
||
|
echo ']' >> $expr
|
||
|
|
||
|
cd ..
|
||
|
rmdir tmp
|