Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
18 lines
398 B
Bash
Executable file
18 lines
398 B
Bash
Executable file
if [ -e "$NIX_ATTRS_SH_FILE" ]; then . "$NIX_ATTRS_SH_FILE"; elif [ -f .attrs.sh ]; then . .attrs.sh; fi
|
|
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
|