mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 16:53:40 +00:00
mullvad-vpn: format
This commit is contained in:
parent
5e1cc48ced
commit
d6ba42ff01
@ -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
|
||||
];
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user