mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 10:34:16 +00:00
18 lines
293 B
Bash
18 lines
293 B
Bash
|
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
|