Skip to content

Instantly share code, notes, and snippets.

@lukegb
Created May 6, 2020 00:42
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
{ pkgs, ... }:
(pkgs.buildFHSUserEnv {
name = "javaws-env";
targetPkgs = pkgs: (with pkgs;
[
adoptopenjdk-icedtea-web
]);
runScript = "bash";
}).env
#!/usr/bin/env bash
set -eu
echo javaws "$@" | nix-shell '<depot>' -A nix.pkgs.javaws-env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment