diff options
author | Emery Hemingway <ehmry@posteo.net> | 2022-07-11 18:23:52 -0500 |
---|---|---|
committer | ehmry <ehmry@posteo.net> | 2022-08-19 13:11:27 -0500 |
commit | b5526585c2de2e66c9111a5484dee65806acbcf5 (patch) | |
tree | 72625ad307637114914f9266658d7ad78e52c785 /pkgs/applications/finance | |
parent | 1a9c66f883bd8ccd71279a7faabe1a5556b9ccb2 (diff) |
treewide: inject xdg-open into wrappers as $PATH suffix
The xdg-open utility is only ever a runtime dependency and its dependents only expect that it accept a URI as a command line argument and do something with it that the user would expect. For such as a trivial relationship it should be possible for users to override xdg-open with something else in their PATH.
Diffstat (limited to 'pkgs/applications/finance')
-rw-r--r-- | pkgs/applications/finance/irpf/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/finance/irpf/default.nix b/pkgs/applications/finance/irpf/default.nix index d855586c4381d..0e52893dedae8 100644 --- a/pkgs/applications/finance/irpf/default.nix +++ b/pkgs/applications/finance/irpf/default.nix @@ -44,11 +44,12 @@ stdenvNoCC.mkDerivation rec { install -Dm755 irpf.jar "$BASEDIR/${pname}.jar" install -Dm644 Leia-me.htm offline.png online.png pgd-updater.jar "$BASEDIR" + # make xdg-open overrideable at runtime makeWrapper ${jdk11}/bin/java $out/bin/${pname} \ --add-flags "-Dawt.useSystemAAFontSettings=on" \ --add-flags "-Dswing.aatext=true" \ --add-flags "-jar $BASEDIR/${pname}.jar" \ - --prefix PATH : ${lib.makeBinPath [ xdg-utils ]} \ + --suffix PATH : ${lib.makeBinPath [ xdg-utils ]} \ --set _JAVA_AWT_WM_NONREPARENTING 1 \ --set AWT_TOOLKIT MToolkit |