shrub/nix/nixcrpkgs/pkgs/ion/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

21 lines
320 B
Bash

source $setup
tar -xf $src
mv bitwise-* bitwise
mkdir build
cd build
$host-gcc -O2 ../bitwise/ion/main.c -o ion$exe_suffix \
-DIONHOME=\"$out/ionhome\"
# TODO: make -DIONHOME actually work
mkdir $out
mkdir $out/bin
mv ion$exe_suffix $out/bin/
mkdir $out/ionhome
mv ../bitwise/ion/system_packages $out/ionhome/