2023-11-16 04:20:00 +00:00
|
|
|
if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
|
2022-09-09 14:08:57 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
pkgdir=$(pwd)/pkg
|
|
|
|
deploydir=$(pwd)/deploy
|
|
|
|
|
|
|
|
undmg $src
|
|
|
|
mkdir $out
|
|
|
|
mkdir $pkgdir
|
|
|
|
mkdir $deploydir
|
|
|
|
|
|
|
|
pkg=*.mpkg/Contents/Packages/*.pkg
|
|
|
|
xar -xf $pkg -C $pkgdir
|
|
|
|
pushd $deploydir
|
|
|
|
cat $pkgdir/Payload | gunzip -dc | cpio -i
|
|
|
|
popd
|
|
|
|
echo $deploydir
|
|
|
|
cp -r $deploydir/usr/local/* $out
|