shrub/nix/nixcrpkgs/pkgs/expat/builder.sh
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

27 lines
382 B
Bash

source $setup
tar -xf $src
cd expat-$version
for patch in $patches; do
echo applying patch $patch
patch -p1 -i $patch
done
cd ..
mkdir build
cd build
../expat-$version/configure \
--prefix=$out --host=$host \
--enable-static --disable-shared
make
make install
mv $out/bin/xmlwf $out/bin/xmlwf.exe
mkdir $out/license
cp ../expat-$version/COPYING $out/license/LICENSE