2020-03-15 14:50:26 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, gettext
|
|
|
|
, gtk-doc
|
|
|
|
, pkg-config
|
|
|
|
, vala
|
|
|
|
, networkmanager
|
|
|
|
, gnome3
|
|
|
|
, isocodes
|
|
|
|
, libxml2
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, mobile-broadband-provider-info
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk3
|
|
|
|
, withGnome ? true
|
|
|
|
, gcr
|
|
|
|
, glib
|
|
|
|
, substituteAll
|
2020-10-14 00:46:17 +01:00
|
|
|
, lib
|
2020-03-15 14:50:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libnma";
|
2020-07-05 13:35:36 +01:00
|
|
|
version = "1.8.30";
|
2020-03-15 14:50:26 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-15 09:19:50 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-07-05 13:35:36 +01:00
|
|
|
sha256 = "1d5gzn7ss5vi0bhc8s4i5gsrck1ajslajam5jxfqazg094mffcys";
|
2020-03-15 14:50:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Needed for wingpanel-indicator-network and switchboard-plug-network
|
|
|
|
./hardcode-gsettings.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
gettext
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
libxml2
|
|
|
|
vala
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
networkmanager
|
|
|
|
isocodes
|
|
|
|
mobile-broadband-provider-info
|
2021-01-15 09:19:50 +00:00
|
|
|
] ++ lib.optionals withGnome [
|
2020-03-15 14:50:26 +00:00
|
|
|
# advanced certificate chooser
|
|
|
|
gcr
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2020-10-14 00:46:17 +01:00
|
|
|
"-Dgcr=${lib.boolToString withGnome}"
|
2020-03-15 14:50:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/nma-ws/nma-eap.c --subst-var-by \
|
|
|
|
NM_APPLET_GSETTINGS ${glib.makeSchemaPath "$out" "${pname}-${version}"}
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
glib-compile-schemas $out/share/glib-2.0/schemas
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-03-15 14:50:26 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libnma";
|
|
|
|
description = "NetworkManager UI utilities (libnm version)";
|
|
|
|
license = licenses.gpl2Plus; # Mix of GPL and LPGL 2+
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|