https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
6 lines
243 B
Bash
6 lines
243 B
Bash
addChickenRepositoryPath() {
|
|
addToSearchPathWithCustomDelimiter : CHICKEN_REPOSITORY_PATH "$1/lib/chicken/11"
|
|
addToSearchPathWithCustomDelimiter : CHICKEN_INCLUDE_PATH "$1/share"
|
|
}
|
|
|
|
addEnvHooks "$targetOffset" addChickenRepositoryPath
|