Files
nixpkgs/pkgs/development/libraries/glib-networking/default.nix
T
Jan Tojnar ce4036177b glib-networking: hardcode GSettings path to gnomeproxy module
So that this can be loaded from programs not depending on gsettings-desktop-schemas.

Currently, this patch is much uglier than it could be due to
https://gitlab.gnome.org/GNOME/glib/issues/1884
2019-09-03 02:48:49 +02:00

70 lines
1.4 KiB
Nix

{ stdenv
, fetchurl
, substituteAll
, meson
, ninja
, pkgconfig
, glib
, gettext
, python3
, gnutls
, p11-kit
, libproxy
, gnome3
, gsettings-desktop-schemas
}:
stdenv.mkDerivation rec {
pname = "glib-networking";
version = "2.60.3";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "1mfw44qpmwvz6yzj8c6spx6z357wrmkk15byrkc5byagd82860fm";
};
patches = [
(substituteAll {
src = ./hardcode-gsettings.patch;
gds_gsettings_path = glib.getSchemaPath gsettings-desktop-schemas;
})
];
postPatch = ''
chmod +x meson_post_install.py # patchShebangs requires executable file
patchShebangs meson_post_install.py
'';
nativeBuildInputs = [
meson
ninja
pkgconfig
gettext
python3 # for install_script
];
buildInputs = [
glib
gnutls
p11-kit
libproxy
gsettings-desktop-schemas
];
doCheck = false; # tests need to access the certificates (among other things)
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "Network-related giomodules for glib";
homepage = https://gitlab.gnome.org/GNOME/glib-networking;
license = licenses.lgpl21Plus;
maintainers = gnome3.maintainers;
platforms = platforms.unix;
};
}