Maybe we have to manually add CFLAGS like release.sh in urbit?

This commit is contained in:
Elliot Glaysher 2019-06-24 15:45:35 -07:00
parent abdb1e234b
commit c6bee9593c
2 changed files with 14 additions and 1 deletions

View File

@ -2,7 +2,7 @@
env.make_derivation rec { env.make_derivation rec {
name = "ge-additions"; name = "ge-additions";
builder = ./builder.sh; builder = ./release.sh;
src = ../../../pkg/ge-additions; src = ../../../pkg/ge-additions;
cross_inputs = [ deps.ed25519 ]; cross_inputs = [ deps.ed25519 ];

View File

@ -0,0 +1,13 @@
source $stdenv/setup
cp -r $src ./src
chmod -R u+w ./src
cd ./src
for dep in $cross_inputs; do
export CFLAGS="${CFLAGS-} -I$dep/include"
export LDFLAGS="${LDFLAGS-} -L$dep/lib"
done
PREFIX=$out make install