mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-29 09:06:15 +02:00
* Allow the channel to declare a name for itself.
This commit is contained in:
parent
1273d355ac
commit
7f254706b0
1 changed files with 6 additions and 0 deletions
|
@ -8,9 +8,15 @@ inputs=($inputs)
|
||||||
for ((n = 0; n < ${#inputs[*]}; n += 2)); do
|
for ((n = 0; n < ${#inputs[*]}; n += 2)); do
|
||||||
channelName=${inputs[n]}
|
channelName=${inputs[n]}
|
||||||
channelTarball=${inputs[n+1]}
|
channelTarball=${inputs[n+1]}
|
||||||
|
|
||||||
echo "unpacking channel $channelName"
|
echo "unpacking channel $channelName"
|
||||||
|
|
||||||
@bunzip2@ < $channelTarball | @tar@ xf -
|
@bunzip2@ < $channelTarball | @tar@ xf -
|
||||||
|
|
||||||
|
if test -e */channel-name; then
|
||||||
|
channelName="$(@coreutils@/cat */channel-name)"
|
||||||
|
fi
|
||||||
|
|
||||||
nr=1
|
nr=1
|
||||||
attrName=$(echo $channelName | @tr@ -- '- ' '__')
|
attrName=$(echo $channelName | @tr@ -- '- ' '__')
|
||||||
dirName=$attrName
|
dirName=$attrName
|
||||||
|
|
Loading…
Reference in a new issue