commit
bbe620f77b
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, meson, ninja, intltool, gtk-doc, pkgconfig, networkmanager, gnome3
|
{ stdenv, fetchurl, meson, ninja, intltool, gtk-doc, pkgconfig, networkmanager, gnome3
|
||||||
, libnotify, libsecret, polkit, isocodes, modemmanager, libxml2, docbook_xsl
|
, libnotify, libsecret, polkit, isocodes, modemmanager, libxml2, docbook_xsl, docbook_xml_dtd_43
|
||||||
, mobile-broadband-provider-info, glib-networking, gsettings-desktop-schemas
|
, mobile-broadband-provider-info, glib-networking, gsettings-desktop-schemas
|
||||||
, libgudev, jansson, wrapGAppsHook, gobjectIntrospection
|
, libgudev, jansson, wrapGAppsHook, gobjectIntrospection
|
||||||
, libappindicator-gtk3, withGnome ? false }:
|
, libappindicator-gtk3, withGnome ? false }:
|
||||||
@ -15,12 +15,8 @@ in stdenv.mkDerivation rec {
|
|||||||
sha256 = "0lmlkh4yyl9smvkgrzshn127zqfbp9f41f448ks8dlhhm38s38v2";
|
sha256 = "0lmlkh4yyl9smvkgrzshn127zqfbp9f41f448ks8dlhhm38s38v2";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
# https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/19
|
|
||||||
./libnm-gtk-mbpi.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
|
"-Dlibnm_gtk=false" # It is deprecated
|
||||||
"-Dselinux=false"
|
"-Dselinux=false"
|
||||||
"-Dappindicator=yes"
|
"-Dappindicator=yes"
|
||||||
"-Dgcr=${if withGnome then "true" else "false"}"
|
"-Dgcr=${if withGnome then "true" else "false"}"
|
||||||
@ -35,7 +31,7 @@ in stdenv.mkDerivation rec {
|
|||||||
libappindicator-gtk3
|
libappindicator-gtk3
|
||||||
] ++ stdenv.lib.optionals withGnome [ gnome3.gcr ]; # advanced certificate chooser
|
] ++ stdenv.lib.optionals withGnome [ gnome3.gcr ]; # advanced certificate chooser
|
||||||
|
|
||||||
nativeBuildInputs = [ meson ninja intltool pkgconfig wrapGAppsHook gobjectIntrospection gtk-doc docbook_xsl libxml2 ];
|
nativeBuildInputs = [ meson ninja intltool pkgconfig wrapGAppsHook gobjectIntrospection gtk-doc docbook_xsl docbook_xml_dtd_43 libxml2 ];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
chmod +x meson_post_install.py # patchShebangs requires executable file
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
||||||
|
@ -25,6 +25,7 @@ in stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ intltool pkgconfig ];
|
nativeBuildInputs = [ intltool pkgconfig ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--without-libnm-glib"
|
||||||
"--with-gnome=${if withGnome then "yes" else "no"}"
|
"--with-gnome=${if withGnome then "yes" else "no"}"
|
||||||
"--localstatedir=/tmp"
|
"--localstatedir=/tmp"
|
||||||
];
|
];
|
||||||
|
@ -28,6 +28,7 @@ in stdenv.mkDerivation rec {
|
|||||||
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
|
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--without-libnm-glib"
|
||||||
"--with-gnome=${if withGnome then "yes" else "no"}"
|
"--with-gnome=${if withGnome then "yes" else "no"}"
|
||||||
"--localstatedir=/" # needed for the management socket under /run/NetworkManager
|
"--localstatedir=/" # needed for the management socket under /run/NetworkManager
|
||||||
];
|
];
|
||||||
|
@ -31,6 +31,7 @@ stdenv.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--without-libnm-glib"
|
||||||
"--with-gnome=${if withGnome then "yes" else "no"}"
|
"--with-gnome=${if withGnome then "yes" else "no"}"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--sysconfdir=$(out)/etc"
|
"--sysconfdir=$(out)/etc"
|
||||||
|
@ -1,33 +0,0 @@
|
|||||||
--- a/meson.build
|
|
||||||
+++ b/meson.build
|
|
||||||
@@ -137,7 +137,7 @@
|
|
||||||
mobile_broadband_provider_info_dep = dependency('mobile-broadband-provider-info')
|
|
||||||
config_h.set_quoted('MOBILE_BROADBAND_PROVIDER_INFO_DATABASE', mobile_broadband_provider_info_dep.get_pkgconfig_variable('database'))
|
|
||||||
else
|
|
||||||
- config_h.set_quoted('MOBILE_BROADBAND_PROVIDER_INFO_DATABASE', join_paths(nma_prefix, 'share', 'mobile-broadband-provider-info', 'serviceproviders.xml'))
|
|
||||||
+ config_h.set_quoted('MOBILE_BROADBAND_PROVIDER_INFO_DATABASE', join_paths(nma_datadir, 'mobile-broadband-provider-info', 'serviceproviders.xml'))
|
|
||||||
endif
|
|
||||||
|
|
||||||
gio_dep = dependency('gio-2.0', version: '>= 2.38')
|
|
||||||
--- a/src/libnm-gtk/nm-mobile-providers.c
|
|
||||||
+++ b/src/libnm-gtk/nm-mobile-providers.c
|
|
||||||
@@ -30,10 +30,6 @@
|
|
||||||
|
|
||||||
#include "nm-mobile-providers.h"
|
|
||||||
|
|
||||||
-#ifndef MOBILE_BROADBAND_PROVIDER_INFO
|
|
||||||
-#define MOBILE_BROADBAND_PROVIDER_INFO DATADIR"/mobile-broadband-provider-info/serviceproviders.xml"
|
|
||||||
-#endif
|
|
||||||
-
|
|
||||||
#define ISO_3166_COUNTRY_CODES ISO_CODES_PREFIX"/share/xml/iso-codes/iso_3166.xml"
|
|
||||||
#define ISO_CODES_LOCALESDIR ISO_CODES_PREFIX"/share/locale"
|
|
||||||
|
|
||||||
@@ -990,7 +986,7 @@
|
|
||||||
if (!country_codes)
|
|
||||||
country_codes = ISO_3166_COUNTRY_CODES;
|
|
||||||
if (!service_providers)
|
|
||||||
- service_providers = MOBILE_BROADBAND_PROVIDER_INFO;
|
|
||||||
+ service_providers = MOBILE_BROADBAND_PROVIDER_INFO_DATABASE;
|
|
||||||
|
|
||||||
countries = read_country_codes (country_codes,
|
|
||||||
cancellable,
|
|
@ -25,6 +25,7 @@ in stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ intltool pkgconfig libxml2 ];
|
nativeBuildInputs = [ intltool pkgconfig libxml2 ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--without-libnm-glib"
|
||||||
"--with-gnome=${if withGnome then "yes" else "no"}"
|
"--with-gnome=${if withGnome then "yes" else "no"}"
|
||||||
"--localstatedir=/" # needed for the management socket under /run/NetworkManager
|
"--localstatedir=/" # needed for the management socket under /run/NetworkManager
|
||||||
];
|
];
|
||||||
|
@ -20,6 +20,7 @@ stdenv.mkDerivation rec {
|
|||||||
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
|
NIX_CFLAGS_COMPILE = "-Wno-deprecated-declarations";
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--without-libnm-glib"
|
||||||
"--with-charon=${strongswanNM}/libexec/ipsec/charon-nm"
|
"--with-charon=${strongswanNM}/libexec/ipsec/charon-nm"
|
||||||
"--with-nm-libexecdir=$(out)/libexec"
|
"--with-nm-libexecdir=$(out)/libexec"
|
||||||
"--with-nm-plugindir=$(out)/lib/NetworkManager"
|
"--with-nm-plugindir=$(out)/lib/NetworkManager"
|
||||||
|
@ -24,6 +24,7 @@ in stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ intltool pkgconfig file ];
|
nativeBuildInputs = [ intltool pkgconfig file ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
|
"--without-libnm-glib"
|
||||||
"--with-gnome=${if withGnome then "yes" else "no"}"
|
"--with-gnome=${if withGnome then "yes" else "no"}"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user