about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDixon Sean Low Yan Feng <dixonseanlow@protonmail.com>2023-02-20 19:38:20 +0800
committerDixon Sean Low Yan Feng <dixonseanlow@protonmail.com>2023-02-20 19:52:46 +0800
commitec36d701273059eecdf1290e4a206068fa7da5e0 (patch)
treedb8e8041d77598e38d03cee314cf78058c28e42c
parent179bff391b21001028b6cc3a3ff6f6de44b897a8 (diff)
mullvad-vpn: add binaries to PATH for GUI launcher script
Adds coreutils and gnugrep to the PATH of the GUI launcher script
via makeProgram. The launcher uses grep, echo, dirname and pwd.
-rw-r--r--pkgs/applications/networking/mullvad-vpn/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/applications/networking/mullvad-vpn/default.nix b/pkgs/applications/networking/mullvad-vpn/default.nix
index 1bda56c542019..4c437611d61bd 100644
--- a/pkgs/applications/networking/mullvad-vpn/default.nix
+++ b/pkgs/applications/networking/mullvad-vpn/default.nix
@@ -2,7 +2,7 @@
 , alsa-lib, atk, cairo, cups, dbus, expat, fontconfig, freetype
 , gdk-pixbuf, glib, pango, nspr, nss, gtk3, mesa
 , libGL, wayland, xorg, autoPatchelfHook, systemd, libnotify, libappindicator
-, makeWrapper
+, makeWrapper, coreutils, gnugrep
 }:
 
 let deps = [
@@ -77,7 +77,9 @@ stdenv.mkDerivation rec {
     ln -s $out/share/mullvad/mullvad-{gui,vpn} $out/bin/
     ln -sf $out/share/mullvad/resources/mullvad-problem-report $out/bin/mullvad-problem-report
 
-    wrapProgram $out/bin/mullvad-vpn --set MULLVAD_DISABLE_UPDATE_NOTIFICATION 1
+    wrapProgram $out/bin/mullvad-vpn \
+      --set MULLVAD_DISABLE_UPDATE_NOTIFICATION 1 \
+      --prefix PATH : ${lib.makeBinPath [ coreutils gnugrep ]}
 
     wrapProgram $out/bin/mullvad-daemon \
         --set-default MULLVAD_RESOURCE_DIR "$out/share/mullvad/resources"