Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
idris: Move library setup to the setup hook.
This was broken in preHook because addEnvHooks isn't defined yet.
- Loading branch information
Showing
3 changed files
with
23 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Library import path | ||
export IDRIS_LIBRARY_PATH=$PWD/idris-libs | ||
mkdir -p $IDRIS_LIBRARY_PATH | ||
|
||
# Library install path | ||
export IBCSUBDIR=$out/lib/@name@ | ||
mkdir -p $IBCSUBDIR | ||
|
||
addIdrisLibs () { | ||
if [ -d $1/lib/@name@ ]; then | ||
ln -sv $1/lib/@name@/* $IDRIS_LIBRARY_PATH | ||
fi | ||
} | ||
|
||
# All run-time deps | ||
addEnvHooks 1 addIdrisLibs |
69d4ade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ericson2314 Is it intentional that
addEnvHooks
is defined afterpreHook
is run?69d4ade
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it is not. Meant to make a mass rebuild about this but didn't yet.