diff --git a/pkgs/by-name/mu/mullvad-vpn/package.nix b/pkgs/by-name/mu/mullvad-vpn/package.nix index 1552ce76c762..0b0426ee4b17 100644 --- a/pkgs/by-name/mu/mullvad-vpn/package.nix +++ b/pkgs/by-name/mu/mullvad-vpn/package.nix @@ -79,8 +79,6 @@ let systemd ]; - version = "2026.1"; - selectSystem = attrs: attrs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); @@ -96,12 +94,15 @@ let }; in -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "mullvad-vpn"; - inherit version; + version = "2026.1"; + + __structuredAttrs = true; + strictDeps = true; src = fetchurl { - url = "https://github.com/mullvad/mullvadvpn-app/releases/download/${version}/MullvadVPN-${version}_${platform}.deb"; + url = "https://github.com/mullvad/mullvadvpn-app/releases/download/${finalAttrs.version}/MullvadVPN-${finalAttrs.version}_${platform}.deb"; inherit hash; }; @@ -124,6 +125,10 @@ stdenv.mkDerivation { wayland ]; + postPatch = '' + patchShebangs opt/Mullvad\ VPN/mullvad-vpn + ''; + installPhase = '' runHook preInstall @@ -166,13 +171,16 @@ stdenv.mkDerivation { meta = { homepage = "https://github.com/mullvad/mullvadvpn-app"; description = "Client for Mullvad VPN"; - changelog = "https://github.com/mullvad/mullvadvpn-app/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/mullvad/mullvadvpn-app/blob/${finalAttrs.version}/CHANGELOG.md"; sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; license = lib.licenses.gpl3Only; mainProgram = "mullvad-vpn"; platforms = lib.platforms.unix; badPlatforms = [ lib.systems.inspect.patterns.isDarwin ]; - maintainers = [ + maintainers = with lib.maintainers; [ + jackr + airone01 + sigmasquadron ]; }; -} +})