Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

programs.jdks: init #988

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

programs.jdks: init #988

wants to merge 4 commits into from

Conversation

Samasaur1
Copy link
Contributor

This PR allows you to install Java versions system-wide.

I've left stubs in place to allow setting the JDK to use, but I have not yet implemented that, so this only adds support for programs.jdk.installed

I've left stubs in place to allow setting the JDK in use,
but I have not yet implemented that, so this only adds support
for `programs.jdk.installed`
I thought I understood bash quoting. I do not. Here's an example:

```
[sam](~)$ for jdk in "/nix/store/fq62102p6snl4mix9w0wpzw9a91ck4l1-zulu-ca-jdk-8.0.402/*.jdk"; do echo $jdk; echo ${jdk//\//_}; done
/nix/store/fq62102p6snl4mix9w0wpzw9a91ck4l1-zulu-ca-jdk-8.0.402/zulu-8.jdk
_nix_store_fq62102p6snl4mix9w0wpzw9a91ck4l1-zulu-ca-jdk-8.0.402_*.jdk
[sam](~)$ for jdk in /nix/store/fq62102p6snl4mix9w0wpzw9a91ck4l1-zulu-ca-jdk-8.0.402/*.jdk; do echo $jdk; echo ${jdk//\//_}; done
/nix/store/fq62102p6snl4mix9w0wpzw9a91ck4l1-zulu-ca-jdk-8.0.402/zulu-8.jdk
_nix_store_fq62102p6snl4mix9w0wpzw9a91ck4l1-zulu-ca-jdk-8.0.402_zulu-8.jdk
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant