Skip to content

Instantly share code, notes, and snippets.

@lukegb
Created May 6, 2020 00:42
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 lukegb/875b56d4628e98100fe3cff16c3a0167 to your computer and use it in GitHub Desktop.
Save lukegb/875b56d4628e98100fe3cff16c3a0167 to your computer and use it in GitHub Desktop.
{ 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