mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
14 lines
305 B
Bash
14 lines
305 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
|
|
}
|
|
|
|
envHooks+=(addPkgToClassPath)
|