From d6ba42ff017e4fa4ea5aaa99a15083589c4b6019 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 30 Nov 2024 18:16:30 +0100 Subject: [PATCH] mullvad-vpn: format --- .../networking/mullvad-vpn/default.nix | 87 +++++++++++-------- 1 file changed, 52 insertions(+), 35 deletions(-) diff --git a/pkgs/applications/networking/mullvad-vpn/default.nix b/pkgs/applications/networking/mullvad-vpn/default.nix index 3ad1de8041ec..cb514b375cb9 100644 --- a/pkgs/applications/networking/mullvad-vpn/default.nix +++ b/pkgs/applications/networking/mullvad-vpn/default.nix @@ -1,32 +1,33 @@ -{ stdenv -, lib -, fetchurl -, dpkg -, alsa-lib -, atk -, cairo -, cups -, dbus -, expat -, fontconfig -, freetype -, gdk-pixbuf -, glib -, pango -, nspr -, nss -, gtk3 -, mesa -, libGL -, wayland -, xorg -, autoPatchelfHook -, systemd -, libnotify -, libappindicator -, makeWrapper -, coreutils -, gnugrep +{ + stdenv, + lib, + fetchurl, + dpkg, + alsa-lib, + atk, + cairo, + cups, + dbus, + expat, + fontconfig, + freetype, + gdk-pixbuf, + glib, + pango, + nspr, + nss, + gtk3, + mesa, + libGL, + wayland, + xorg, + autoPatchelfHook, + systemd, + libnotify, + libappindicator, + makeWrapper, + coreutils, + gnugrep, }: let @@ -66,7 +67,9 @@ let version = "2024.7"; - selectSystem = attrs: attrs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); + selectSystem = + attrs: + attrs.${stdenv.hostPlatform.system} or (throw "Unsupported system: ${stdenv.hostPlatform.system}"); platform = selectSystem { x86_64-linux = "amd64"; @@ -99,7 +102,13 @@ stdenv.mkDerivation { dontBuild = true; dontConfigure = true; - runtimeDependencies = [ (lib.getLib systemd) libGL libnotify libappindicator wayland ]; + runtimeDependencies = [ + (lib.getLib systemd) + libGL + libnotify + libappindicator + wayland + ]; installPhase = '' runHook preInstall @@ -115,7 +124,12 @@ stdenv.mkDerivation { wrapProgram $out/bin/mullvad-vpn \ --set MULLVAD_DISABLE_UPDATE_NOTIFICATION 1 \ - --prefix PATH : ${lib.makeBinPath [ coreutils gnugrep ]} + --prefix PATH : ${ + lib.makeBinPath [ + coreutils + gnugrep + ] + } wrapProgram $out/bin/mullvad-daemon \ --set-default MULLVAD_RESOURCE_DIR "$out/share/mullvad/resources" @@ -136,9 +150,12 @@ stdenv.mkDerivation { changelog = "https://github.com/mullvad/mullvadvpn-app/blob/${version}/CHANGELOG.md"; sourceProvenance = with sourceTypes; [ binaryNativeCode ]; license = licenses.gpl3Only; - platforms = platforms.unix ; + platforms = platforms.unix; badPlatforms = [ lib.systems.inspect.patterns.isDarwin ]; - maintainers = with maintainers; [ Br1ght0ne ymarkus ataraxiasjel ]; + maintainers = with maintainers; [ + Br1ght0ne + ymarkus + ataraxiasjel + ]; }; - }