summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGaetan Lepage <gaetan@glepage.com>2024-11-30 18:16:30 +0100
committerGaetan Lepage <gaetan@glepage.com>2024-11-30 18:17:19 +0100
commitd6ba42ff017e4fa4ea5aaa99a15083589c4b6019 (patch)
treebba10c64813419310ad4d2b14ad58ac713cebce7
parentmullvad-vpn: 2024.6 -> 2024.7 (#356825) (diff)
downloadnixpkgs-d6ba42ff017e4fa4ea5aaa99a15083589c4b6019.tar.gz
mullvad-vpn: format
-rw-r--r--pkgs/applications/networking/mullvad-vpn/default.nix87
1 files 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
+ ];
};
-
}