mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 15:44:20 +00:00
c01f509e44
if theres a source $stdenv then this is needed for structuredAttrs
19 lines
340 B
Bash
Executable File
19 lines
340 B
Bash
Executable File
if [ -e .attrs.sh ]; then source .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
|