I’m trying to wrap using a buildFHSUserEnv
in a slightly more “comfortable” way, by providing a wrapper script that effectively drops into the user env and then runs a provided binary.
I’ve done this in the worst-possible way by just piping things into the bash prompt returned by nix-shell
: https://gist.github.com/lukegb/875b56d4628e98100fe3cff16c3a0167, but I’m pretty sure there’s a better way of doing this. nix-shell --command
nor nix-shell --run
actually seem to do anything when presented with the .env
output of buildFHSUserEnv
.
This is because I want to be able to run javaws
from adoptopenjdk-icedtea-web
, but I need things to be in a reasonable place because the JNLP I’m invoking runs an applet which drops a Linux binary which is expecting a standard FHS layout…