networkmanager-openconnect: format with nixpkgs-fmt
This commit is contained in:
parent
488e6b7a23
commit
33f664ceee
1 changed files with 35 additions and 9 deletions
|
@ -1,14 +1,29 @@
|
|||
{ 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";
|
||||
pname = "NetworkManager-openconnect";
|
||||
version = "1.2.6";
|
||||
in stdenv.mkDerivation {
|
||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
||||
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m";
|
||||
};
|
||||
|
||||
|
@ -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