Closed haskie-lambda closed 3 years ago
I think the idea makes sense @haskie-lambda ! Configuring JAVA_HOME
is something that's quite common across various software.
Right @haikalpribadi @vmax ?
@lolski : where is the start script located within the typedb repo? I am unfamiliar with the codebase; when you tell me where it is, I will change it and do a pull request.
@haskie-lambda it's here: https://github.com/vaticle/typedb-common/blob/master/binary/grakn
@vmax is there any convention regarding the commit messages or the pull requests in that repo?
Once you open a pull request (just try it, without submitting) you will be provided with template in the input form, @haskie-lambda.
Note that I'm in the midst of refactoring github.com/vaticle/typedb-common @haskie-lambda - I'll be done in about an hour.
I'll do the pull anyway and change it later if needed; it is a pretty small change so i guess it should even merge afterwards
Problem to Solve
linked to this discussion i am working on NixOS and there is no package available for Grank/TypeDB. I wrote a package description, but there are a lot of patches in there because the java command might not be in scope directly but in a built derivation of the system somewhere. these patches make the package unstable because string replaces break fast.
Current Workaround
Currently I replace all calls to
java
in the install script with a qualified path to the java install location.Proposed Solution
@lolski 's proposed solution was this:
" We could introduce an option JAVA_HOME which allows you to supply path to your chosen version of Java:
Otherwise, you want don't supply your own path, the default java that exist in your system will be chosen:
"
Additional Information
linked to this pull request on nixpkgs