Skip to content

Commit 4e3a2b8

Browse files
committed
pritunl-client: Add optional wireguard support
1 parent 5ab479e commit 4e3a2b8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

pkgs/by-name/pr/pritunl-client/package.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
iproute2,
1818
openvpn,
1919
electron,
20+
wireguard-tools,
21+
withWireguard ? stdenv.hostPlatform.isLinux,
2022
}:
2123
let
2224
version = "1.3.4275.94";
@@ -97,10 +99,19 @@ let
9799
--prefix PATH : ${lib.makeBinPath hookScriptsDeps} \
98100
--add-flags "--setenv PATH \$PATH"
99101
'';
102+
pritunlDeps =
103+
[
104+
openvpn-wrapped
105+
]
106+
++ lib.optionals withWireguard [
107+
openresolv
108+
coreutils
109+
wireguard-tools
110+
];
100111
in
101112
lib.optionalString stdenv.hostPlatform.isLinux ''
102113
wrapProgram $out/bin/pritunl-client-service \
103-
--prefix PATH : "${lib.makeBinPath ([ openvpn-wrapped ])}"
114+
--prefix PATH : "${lib.makeBinPath pritunlDeps}"
104115
'';
105116
passthru.updateScript = nix-update-script { };
106117
};

0 commit comments

Comments
 (0)