mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 00:22:13 +00:00
69d4adee1f
This was broken in preHook because addEnvHooks isn't defined yet.
17 lines
323 B
Bash
17 lines
323 B
Bash
# 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
|