gnome3.libgweather: fix build
This commit is contained in:
parent
32b59d0961
commit
a6cc7cc01c
@ -1,30 +1,45 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, libxml2, gtk, intltool, libsoup, gconf
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, libxml2, glib, gtk, gettext, libsoup
|
||||||
, pango, gdk_pixbuf, atk, tzdata, gnome3 }:
|
, gtk-doc, docbook_xsl, gobjectIntrospection, tzdata, geocode-glib, vala, gnome3 }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
name = "libgweather-${version}";
|
pname = "libgweather";
|
||||||
version = "3.28.0";
|
version = "3.28.0";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnome/sources/libgweather/${gnome3.versionBranch version}/${name}.tar.xz";
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
||||||
sha256 = "13z12ra5fhn7xhsrskd7q8dnc2qnd1kylhndg6zlhk0brj6yfjsr";
|
sha256 = "13z12ra5fhn7xhsrskd7q8dnc2qnd1kylhndg6zlhk0brj6yfjsr";
|
||||||
};
|
};
|
||||||
|
|
||||||
passthru = {
|
nativeBuildInputs = [ meson ninja pkgconfig gettext vala gtk-doc docbook_xsl gobjectIntrospection ];
|
||||||
updateScript = gnome3.updateScript { packageName = "libgweather"; attrPath = "gnome3.libgweather"; };
|
buildInputs = [ glib gtk libsoup libxml2 geocode-glib ];
|
||||||
};
|
|
||||||
|
|
||||||
configureFlags = [ "--with-zoneinfo-dir=${tzdata}/share/zoneinfo" "--enable-vala" ];
|
postPatch = ''
|
||||||
propagatedBuildInputs = [ libxml2 gtk libsoup gconf pango gdk_pixbuf atk gnome3.geocode-glib ];
|
chmod +x meson/meson_post_install.py
|
||||||
nativeBuildInputs = [ pkgconfig intltool gnome3.vala ];
|
patchShebangs meson/meson_post_install.py
|
||||||
|
|
||||||
# Prevent building vapi into ${vala} derivation directory
|
|
||||||
prePatch = ''
|
|
||||||
substituteInPlace libgweather/Makefile.in --replace "\$(DESTDIR)\$(vapidir)" "\$(DESTDIR)\$(girdir)/../vala/vapi"
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
mesonFlags = [
|
||||||
|
"-Dzoneinfo_dir=${tzdata}/share/zoneinfo"
|
||||||
|
"-Denable_vala=true"
|
||||||
|
"-Dgtk_doc=true"
|
||||||
|
];
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome3.updateScript {
|
||||||
|
packageName = pname;
|
||||||
|
attrPath = "gnome3.${pname}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
platforms = platforms.linux;
|
description = "A library to access weather information from online services for numerous locations";
|
||||||
|
homepage = https://wiki.gnome.org/Projects/LibGWeather;
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
maintainers = gnome3.maintainers;
|
maintainers = gnome3.maintainers;
|
||||||
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user