Skip to content

Commit 4829779

Browse files
committed
mullvad-vpn: add versionCheckHook
1 parent 5289e54 commit 4829779

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

pkgs/by-name/mu/mullvad-vpn/package.nix

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
makeWrapper,
2929
coreutils,
3030
gnugrep,
31+
32+
versionCheckHook,
3133
}:
3234

3335
let
@@ -142,17 +144,23 @@ stdenv.mkDerivation {
142144
runHook postInstall
143145
'';
144146

147+
nativeInstallCheckInputs = [
148+
versionCheckHook
149+
];
150+
versionCheckProgramArg = [ "--version" ];
151+
doInstallCheck = true;
152+
145153
passthru.updateScript = ./update.sh;
146154

147-
meta = with lib; {
155+
meta = {
148156
homepage = "https://github.com/mullvad/mullvadvpn-app";
149157
description = "Client for Mullvad VPN";
150158
changelog = "https://github.com/mullvad/mullvadvpn-app/blob/${version}/CHANGELOG.md";
151-
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
152-
license = licenses.gpl3Only;
153-
platforms = platforms.unix;
159+
sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ];
160+
license = lib.licenses.gpl3Only;
161+
platforms = lib.platforms.unix;
154162
badPlatforms = [ lib.systems.inspect.patterns.isDarwin ];
155-
maintainers = with maintainers; [
163+
maintainers = with lib.maintainers; [
156164
Br1ght0ne
157165
ymarkus
158166
ataraxiasjel

0 commit comments

Comments
 (0)