mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
libgweather: 40.0 → 3.91.0
Yes, this is an upgrade. https://gitlab.gnome.org/GNOME/libgweather/-/tags/3.90.0 https://gitlab.gnome.org/GNOME/libgweather/-/tags/3.91.0
This commit is contained in:
parent
9649427f1c
commit
4be046c3cf
2 changed files with 33 additions and 14 deletions
|
@ -6,12 +6,9 @@
|
|||
, pkg-config
|
||||
, libxml2
|
||||
, glib
|
||||
, gtk3
|
||||
, gettext
|
||||
, libsoup
|
||||
, gtk-doc
|
||||
, docbook-xsl-nons
|
||||
, docbook_xml_dtd_43
|
||||
, gi-docgen
|
||||
, gobject-introspection
|
||||
, python3
|
||||
, tzdata
|
||||
|
@ -22,24 +19,29 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "libgweather";
|
||||
version = "40.0";
|
||||
version = "3.91.0";
|
||||
|
||||
outputs = [ "out" "dev" "devdoc" ];
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "1rkf4yv43qcahyx7bismdv6z2vh5azdnm1fqfmnzrada9cm8ykna";
|
||||
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
||||
sha256 = "cls+s0/G0h7cgLbmhHKLMIix+hRPCipNPpYFx6jz3Pg=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Headers depend on glib but it is only listed in Requires.private,
|
||||
# which does not influence Cflags on non-static builds in nixpkgs’s
|
||||
# pkg-config. Let’s add it to Requires to ensure Cflags are set correctly.
|
||||
./fix-pkgconfig.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
gettext
|
||||
vala
|
||||
gtk-doc
|
||||
docbook-xsl-nons
|
||||
docbook_xml_dtd_43
|
||||
gi-docgen
|
||||
gobject-introspection
|
||||
python3
|
||||
python3.pkgs.pygobject3
|
||||
|
@ -47,7 +49,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [
|
||||
glib
|
||||
gtk3
|
||||
libsoup
|
||||
libxml2
|
||||
geocode-glib
|
||||
|
@ -60,9 +61,13 @@ stdenv.mkDerivation rec {
|
|||
];
|
||||
|
||||
postPatch = ''
|
||||
chmod +x meson/meson_post_install.py
|
||||
patchShebangs meson/meson_post_install.py
|
||||
patchShebangs data/gen_locations_variant.py
|
||||
patchShebangs build-aux/meson/meson_post_install.py
|
||||
patchShebangs build-aux/meson/gen_locations_variant.py
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
||||
moveToOutput "share/doc" "$devdoc"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
|
|
14
pkgs/development/libraries/libgweather/fix-pkgconfig.patch
Normal file
14
pkgs/development/libraries/libgweather/fix-pkgconfig.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git a/libgweather/meson.build b/libgweather/meson.build
|
||||
index b5d0b4d4..10010d70 100644
|
||||
--- a/libgweather/meson.build
|
||||
+++ b/libgweather/meson.build
|
||||
@@ -269,6 +269,9 @@ pkgconfig.generate(
|
||||
description: 'Gather weather information from online services',
|
||||
version: meson.project_version(),
|
||||
subdirs: libgweather_full_version,
|
||||
+ requires: [
|
||||
+ 'glib-2.0',
|
||||
+ ],
|
||||
variables: [
|
||||
'soupapiversion=' + libsoup_api_version,
|
||||
]
|
Loading…
Reference in a new issue