libgweather: clean up

This commit is contained in:
Jan Tojnar 2021-04-13 00:45:54 +02:00
parent 521efa2798
commit 312598aaf7
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,5 +1,24 @@
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, libxml2, glib, gtk3, gettext, libsoup { lib
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, gobject-introspection, python3, tzdata, geocode-glib, vala, gnome3 }: , stdenv
, fetchurl
, meson
, ninja
, pkg-config
, libxml2
, glib
, gtk3
, gettext
, libsoup
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
, gobject-introspection
, python3
, tzdata
, geocode-glib
, vala
, gnome3
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "libgweather"; pname = "libgweather";
@ -12,13 +31,26 @@ stdenv.mkDerivation rec {
sha256 = "0l74hc02rvzm4p530y539a67jwb080fqdaazdl8j0fr3xvq0j9yy"; sha256 = "0l74hc02rvzm4p530y539a67jwb080fqdaazdl8j0fr3xvq0j9yy";
}; };
nativeBuildInputs = [ meson ninja pkg-config gettext vala gtk-doc docbook_xsl docbook_xml_dtd_43 gobject-introspection python3 ]; nativeBuildInputs = [
buildInputs = [ glib gtk3 libsoup libxml2 geocode-glib ]; meson
ninja
pkg-config
gettext
vala
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
gobject-introspection
python3
];
postPatch = '' buildInputs = [
chmod +x meson/meson_post_install.py glib
patchShebangs meson/meson_post_install.py gtk3
''; libsoup
libxml2
geocode-glib
];
mesonFlags = [ mesonFlags = [
"-Dzoneinfo_dir=${tzdata}/share/zoneinfo" "-Dzoneinfo_dir=${tzdata}/share/zoneinfo"
@ -26,6 +58,11 @@ stdenv.mkDerivation rec {
"-Dgtk_doc=true" "-Dgtk_doc=true"
]; ];
postPatch = ''
chmod +x meson/meson_post_install.py
patchShebangs meson/meson_post_install.py
'';
passthru = { passthru = {
updateScript = gnome3.updateScript { updateScript = gnome3.updateScript {
packageName = pname; packageName = pname;