mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
22 lines
349 B
Bash
22 lines
349 B
Bash
#! @shell@ -e
|
|
|
|
@coreutils@/mkdir $out
|
|
@coreutils@/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 -
|
|
@coreutils@/mv * ../$nr # !!! hacky
|
|
echo "(import ./$nr)" >> $expr
|
|
nr=$(($nr + 1))
|
|
done
|
|
|
|
echo ']' >> $expr
|
|
|
|
cd ..
|
|
@coreutils@/rmdir tmp
|