Re: [Nix-dev] JAVA_HOME and other environment variables

2016-03-07 Thread zimbatm
If the given programs are packaged with nix then it shouldn't be an issue but I agree that for starting random programs it's not ideal. Maybe the solution it to make it dead easy to wrap a Java program in a derivation ? On Mon, 7 Mar 2016 at 01:51 Svein Ove Aas wrote: > That's

Re: [Nix-dev] JAVA_HOME and other environment variables

2016-03-06 Thread Svein Ove Aas
That's effectively what happens already, if you use nix-shell. I'm concerned mostly about users who don't know to do that. Someone trying to run a script from a different brand of unix, for example. In theory, if there is a java binary on the PATH, there should also be a JAVA_HOME. That's

[Nix-dev] JAVA_HOME and other environment variables

2016-03-05 Thread Svein Ove Aas
Context: https://github.com/NixOS/nixpkgs/issues/13653 There are a few packages which can't be considered properly installed (and usable) without setting environment variables, this example being the Java development kit. Some Java-based tools need to know where to find the JDK. The way they do