mullvad: make openvpn support optional
Enabled by default to not break anybody who depends on it, but I don't and I would like to disable it.
This commit is contained in:
parent
a0d3f55f3d
commit
4b57d35c27
1 changed files with 2 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
||||||
, libnftnl
|
, libnftnl
|
||||||
, libmnl
|
, libmnl
|
||||||
, libwg
|
, libwg
|
||||||
|
, enableOpenvpn ? true
|
||||||
, openvpn-mullvad
|
, openvpn-mullvad
|
||||||
, shadowsocks-rust
|
, shadowsocks-rust
|
||||||
}:
|
}:
|
||||||
|
@ -67,7 +68,7 @@ rustPlatform.buildRustPackage rec {
|
||||||
done
|
done
|
||||||
'' +
|
'' +
|
||||||
# Files necessary for OpenVPN tunnels to work.
|
# Files necessary for OpenVPN tunnels to work.
|
||||||
''
|
lib.optionalString enableOpenvpn ''
|
||||||
mkdir -p $out/share/mullvad
|
mkdir -p $out/share/mullvad
|
||||||
cp dist-assets/ca.crt $out/share/mullvad
|
cp dist-assets/ca.crt $out/share/mullvad
|
||||||
ln -s ${openvpn-mullvad}/bin/openvpn $out/share/mullvad
|
ln -s ${openvpn-mullvad}/bin/openvpn $out/share/mullvad
|
||||||
|
|
Loading…
Reference in a new issue