about summary refs log tree commit diff
path: root/pkgs/build-support/setup-hooks/set-java-classpath.sh
AgeCommit message (Collapse)AuthorFilesLines
2019-11-24java classpath hook: allow unbound $CLASSPATHJason Felice1-1/+1
2017-12-30treewide: Don't use envHook anymoreJohn Ericson1-1/+1
This commits needs a MAJOR audit as I oftentimes just guessed which of `$hostOffset`, `$targetOffset`, or a fixed offset should be used.
2014-08-09Cleanup: Use += to append to envHooksEelco Dolstra1-1/+1
2014-01-06Add a setup hook that automatically sets up $CLASSPATHEelco Dolstra1-0/+13
All JARs in $pkg/share/java (for each $pkg in the build inputs) are added to $CLASSPATH. Thus, you can say buildInputs = [ setJavaClassPath someJavaDependency ]; and the JARs in someJavaDependency will be found automatically by tools like javac or ant. Note that the manual used to say that JARs should be installed in lib/java; this is now share/java, following the Debian policy: http://www.debian.org/doc/packaging-manuals/java-policy/x110.html The directory share/java makes more sense because JARs are architecture-independent. (Also, a quick grep shows that we were not exactly consistent about this in Nixpkgs.)