mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
13 lines
322 B
Bash
13 lines
322 B
Bash
# This setup hook adds every JAR in the share/java subdirectories of
|
|
# the build inputs to $CLASSPATH.
|
|
|
|
export CLASSPATH
|
|
|
|
addPkgToClassPath () {
|
|
local jar
|
|
for jar in $1/share/java/*.jar; do
|
|
export CLASSPATH=''${CLASSPATH-}''${CLASSPATH:+:}''${jar}
|
|
done
|
|
}
|
|
|
|
addEnvHooks "$targetOffset" addPkgToClassPath
|