Support xz compression of nixexprs.tar in channels
This commit is contained in:
parent
444b03a36f
commit
566afa1e9c
2 changed files with 9 additions and 2 deletions
|
|
@ -6,7 +6,12 @@ let
|
|||
''
|
||||
mkdir $out
|
||||
cd $out
|
||||
${bzip2} -d < $src | ${tar} xf - ${tarFlags}
|
||||
pat="\.xz\$"
|
||||
if [[ "$src" =~ $pat ]]; then
|
||||
${xz} -d < $src | ${tar} xf - ${tarFlags}
|
||||
else
|
||||
${bzip2} -d < $src | ${tar} xf - ${tarFlags}
|
||||
fi
|
||||
mv * $out/$channelName
|
||||
if [ -n "$binaryCacheURL" ]; then
|
||||
mkdir $out/binary-caches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue