gnome.networkmanager-openconnect: 1.2.6 → 1.2.8

https://gitlab.gnome.org/GNOME/NetworkManager-openconnect/-/compare/1.2.6...1.2.8
This commit is contained in:
Jan Tojnar 2022-03-15 20:30:05 +00:00
parent 6699fb04e9
commit 1947aeb168

View file

@ -1,4 +1,5 @@
{ lib, stdenv { stdenv
, lib
, fetchurl , fetchurl
, substituteAll , substituteAll
, glib , glib
@ -12,21 +13,21 @@
, libsecret , libsecret
, file , file
, gtk3 , gtk3
, libnma
, libnma-gtk4
, gtk4
, withGnome ? true , withGnome ? true
, gnome , gnome
, kmod , kmod
, fetchpatch
}: }:
let stdenv.mkDerivation rec {
pname = "NetworkManager-openconnect"; pname = "NetworkManager-openconnect";
version = "1.2.6"; version = "1.2.8";
in stdenv.mkDerivation {
name = "${pname}${if withGnome then "-gnome" else ""}-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; url = "mirror://gnome/sources/NetworkManager-openconnect/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0nlp290nkawc4wqm978n4vhzg3xdqi8kpjjx19l855vab41rh44m"; sha256 = "Xe2qeF2C2OI53dCCv6xSUMaR6WRGS+GAe2gnJjYzzcw=";
}; };
patches = [ patches = [
@ -34,12 +35,6 @@ in stdenv.mkDerivation {
src = ./fix-paths.patch; src = ./fix-paths.patch;
inherit kmod openconnect; inherit kmod openconnect;
}) })
# Don't use etc/dbus-1/system.d
(fetchpatch {
url = "https://gitlab.gnome.org/GNOME/NetworkManager-openconnect/merge_requests/9.patch";
sha256 = "0yd2dmq6gq6y4czr7dqdgaiqvw2vyv2gikznpfdxyfn2v1pcrk9m";
})
]; ];
buildInputs = [ buildInputs = [
@ -49,6 +44,9 @@ in stdenv.mkDerivation {
networkmanager networkmanager
] ++ lib.optionals withGnome [ ] ++ lib.optionals withGnome [
gtk3 gtk3
libnma
libnma-gtk4
gtk4
gcr gcr
libsecret libsecret
]; ];
@ -61,8 +59,8 @@ in stdenv.mkDerivation {
configureFlags = [ configureFlags = [
"--with-gnome=${if withGnome then "yes" else "no"}" "--with-gnome=${if withGnome then "yes" else "no"}"
"--with-gtk4=${if withGnome then "yes" else "no"}"
"--enable-absolute-paths" "--enable-absolute-paths"
"--without-libnm-glib"
]; ];
passthru = { passthru = {