diff options
author | Katharina Fey <kookie@spacekookie.de> | 2020-01-21 18:18:54 +0000 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2020-01-21 18:18:54 +0000 |
commit | 46e5f4fcea8f9dfa4bdc72987712ba6dc360e24d (patch) | |
tree | cbb35f511ee582fb03f56a78ca98c7ead43d6021 /nixpkgs/pkgs | |
parent | b08677c04c4e3fae3d700c8c603bd267c2abca8c (diff) |
mullvad-vpn: wrapping the mullvad-daemon to have access to iproute
Diffstat (limited to 'nixpkgs/pkgs')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/mullvad-vpn/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/applications/networking/mullvad-vpn/default.nix b/nixpkgs/pkgs/applications/networking/mullvad-vpn/default.nix index 343685c4ab7..1e739780bb5 100644 --- a/nixpkgs/pkgs/applications/networking/mullvad-vpn/default.nix +++ b/nixpkgs/pkgs/applications/networking/mullvad-vpn/default.nix @@ -1,7 +1,7 @@ { stdenv, makeWrapper, fetchurl, dpkg , alsaLib, atk, cairo, cups, dbus, expat, fontconfig, freetype , gdk-pixbuf, glib, gnome2, pango, nspr, nss, gtk3 -, xorg, autoPatchelfHook, systemd, libnotify +, xorg, autoPatchelfHook, systemd, libnotify, iproute }: let deps = [ @@ -50,6 +50,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ autoPatchelfHook dpkg + makeWrapper ]; buildInputs = deps; @@ -72,7 +73,10 @@ stdenv.mkDerivation rec { sed -i 's|\/opt\/Mullvad.*VPN|'$out'/bin|g' $out/share/applications/mullvad-vpn.desktop - ln -s $out/share/mullvad/mullvad-{gui,vpn} $out/bin/ + wrapProgram $out/share/mullvad/resources/mullvad-daemon \ + --suffix PATH : ${iproute}/bin + + ln -s $out/share/mullvad/mullvad-vpn $out/bin/mullvad-vpn ln -s $out/share/mullvad/resources/mullvad-daemon $out/bin/mullvad-daemon runHook postInstall |