2019-09-02 18:45:48 +02:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, gnome3
|
2018-12-25 04:30:59 +01:00
|
|
|
, glib, gtk3, gobject-introspection, python3, ncurses
|
2016-09-18 21:35:23 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-12-25 04:30:59 +01:00
|
|
|
pname = "libpeas";
|
2019-09-02 18:45:48 +02:00
|
|
|
version = "1.24.0";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-12-25 04:30:59 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-02 18:45:48 +02:00
|
|
|
sha256 = "1yg6r0srz3knhgvplprl3pikrq5c02dmdxgfwcynd6hjih9h16hb";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2019-09-02 18:45:48 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig meson ninja gettext gobject-introspection ];
|
2018-12-25 04:30:59 +01:00
|
|
|
buildInputs = [ glib gtk3 ncurses python3 python3.pkgs.pygobject3 ];
|
2017-12-13 13:32:27 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
# Required by libpeas-1.0.pc
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection
|
2017-12-13 13:32:27 +01:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
libpeas: correct gtk .pc file
Here's the diff post meson:
-prefix=/nix/store/hfrrby8wapcz17v927as18z3znqdv2ps-libpeas-1.22.0
-exec_prefix=${prefix}
-libdir=${exec_prefix}/lib
+prefix=/nix/store/sc8h3m6fv3zdjzpkimhm4yqarafhjp6y-libpeas-1.24.0
+libdir=${prefix}/lib
includedir=${prefix}/include
-Name: libpeas-gtk
-Description: libpeas-gtk, a GObject plugins library (Gtk widgets)
-Requires: glib-2.0 >= 2.38.0, gtk+-3.0 >= 3.0.0, libpeas-1.0 >= 1.22.0
-Version: 1.22.0
+Name: libpeas-gtk-1.0
+Description: GObject plugins library widgetery
+Version: 1.24.0
+Requires.private: libpeas-1.0, glib-2.0 >= 2.38.0, gobject-2.0 >= 2.38.0, gobject-introspection-1.0 >= 1.39.0, gtk+-3.0 >= 3.0.0, gmodule-2.0 >= 2.38.0, gio-2.0 >= 2.38.0
+Libs: -L${prefix}//lib -lpeas-gtk-1.0
Cflags: -I${includedir}/libpeas-1.0
-Libs: -L${libdir} -lpeas-gtk-1.0
As we can see, all the requires got moved into private.
This appears to have broken midori [0]
[0]: https://hydra.nixos.org/build/101627205
2019-09-22 00:46:31 +02:00
|
|
|
patches = [
|
|
|
|
./fix-libpeas-gtk-pc.patch
|
|
|
|
];
|
|
|
|
|
2018-12-25 04:30:59 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A GObject-based plugins engine";
|
2018-12-25 04:30:59 +01:00
|
|
|
homepage = https://wiki.gnome.org/Projects/Libpeas;
|
2016-09-18 21:35:23 +02:00
|
|
|
license = licenses.gpl2Plus;
|
2018-05-30 03:21:09 +02:00
|
|
|
platforms = platforms.unix;
|
2016-09-18 21:35:23 +02:00
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|