Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobBlackwell/d09dd9e934b3afc9721ae7c2b60cd086 to your computer and use it in GitHub Desktop.
Save RobBlackwell/d09dd9e934b3afc9721ae7c2b60cd086 to your computer and use it in GitHub Desktop.
Java on NixOS
nix-env -iA nixos.oraclejre8
Unfortunately, we cannot download file jdk-8u131-linux-x64.tar.gz automatically.
Please go to http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html to download it yourself, and add it to the Nix store
using either
nix-store --add-fixed sha256 jdk-8u131-linux-x64.tar.gz
or
nix-prefetch-url --type sha256 file:///path/to/jdk-8u131-linux-x64.tar.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment