mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00

It's hard to put the sourcing of ./.attrs.sh into all builder consistently - mistakes will happen. Thus, load structured attrs once in make-derivation and then source the remaining builder on top. This should fix quite a few builders with structured attributes in principle. Most importantly it helps substitute / substituteAll, which are required for bootstrap on some platforms.
15 lines
271 B
Bash
Executable file
15 lines
271 B
Bash
Executable file
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
|