forked from mirrors/nixpkgs
networkmanager-openconnect: format with nixpkgs-fmt
This commit is contained in:
parent
488e6b7a23
commit
33f664ceee
|
@ -1,5 +1,20 @@
|
|||
{ stdenv, fetchurl, substituteAll, openconnect, intltool, pkgconfig, autoreconfHook, networkmanager, gcr, libsecret, file
|
||||
, gtk3, withGnome ? true, gnome3, kmod, fetchpatch }:
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, substituteAll
|
||||
, openconnect
|
||||
, intltool
|
||||
, pkgconfig
|
||||
, autoreconfHook
|
||||
, networkmanager
|
||||
, gcr
|
||||
, libsecret
|
||||
, file
|
||||
, gtk3
|
||||
, withGnome ? true
|
||||
, gnome3
|
||||
, kmod
|
||||
, fetchpatch
|
||||
}:
|
||||
|
||||
let
|
||||
pname = "NetworkManager-openconnect";
|
||||
|
@ -17,6 +32,7 @@ in stdenv.mkDerivation {
|
|||
src = ./fix-paths.patch;
|
||||
inherit kmod openconnect;
|
||||
})
|
||||
|
||||
# Don't use etc/dbus-1/system.d
|
||||
(fetchpatch {
|
||||
url = "https://gitlab.gnome.org/GNOME/NetworkManager-openconnect/merge_requests/9.patch";
|
||||
|
@ -24,10 +40,20 @@ in stdenv.mkDerivation {
|
|||
})
|
||||
];
|
||||
|
||||
buildInputs = [ openconnect networkmanager ]
|
||||
++ stdenv.lib.optionals withGnome [ gtk3 gcr libsecret ];
|
||||
buildInputs = [
|
||||
openconnect
|
||||
networkmanager
|
||||
] ++ stdenv.lib.optionals withGnome [
|
||||
gtk3
|
||||
gcr
|
||||
libsecret
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ intltool pkgconfig file ];
|
||||
nativeBuildInputs = [
|
||||
intltool
|
||||
pkgconfig
|
||||
file
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-gnome=${if withGnome then "yes" else "no"}"
|
||||
|
@ -43,7 +69,7 @@ in stdenv.mkDerivation {
|
|||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "NetworkManager's OpenConnect plugin";
|
||||
description = "NetworkManager’s OpenConnect plugin";
|
||||
inherit (networkmanager.meta) maintainers platforms;
|
||||
license = licenses.gpl2Plus;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue