2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-05-15 21:57:56 +00:00
|
|
|
, gettext
|
|
|
|
, fetchurl
|
|
|
|
, python3
|
2020-11-19 00:13:47 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2020-05-15 21:57:56 +00:00
|
|
|
, pkg-config
|
|
|
|
, gtk3
|
|
|
|
, glib
|
2020-11-19 00:13:47 +00:00
|
|
|
, gjs
|
2023-11-16 04:20:00 +00:00
|
|
|
, enableWebkit2gtk ? stdenv.isLinux
|
2022-10-21 18:38:19 +00:00
|
|
|
, webkitgtk_4_1
|
2020-05-15 21:57:56 +00:00
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, docbook-xsl-nons
|
2020-11-19 00:13:47 +00:00
|
|
|
, docbook_xml_dtd_42
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-05-15 21:57:56 +00:00
|
|
|
, gdk-pixbuf
|
|
|
|
, libxslt
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "glade";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "3.40.0";
|
2020-05-15 21:57:56 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/glade/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "McmtrqhJlyq5UXtWThmsGZd8qXdYsQntwxZwCPU+PZw=";
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-11-19 00:13:47 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2020-05-15 21:57:56 +00:00
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
wrapGAppsHook
|
|
|
|
docbook-xsl-nons
|
2020-11-19 00:13:47 +00:00
|
|
|
docbook_xml_dtd_42
|
2020-05-15 21:57:56 +00:00
|
|
|
libxslt
|
|
|
|
libxml2
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
2020-11-19 00:13:47 +00:00
|
|
|
gjs
|
2020-05-15 21:57:56 +00:00
|
|
|
libxml2
|
|
|
|
python3
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gdk-pixbuf
|
2021-05-20 23:08:51 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2023-11-16 04:20:00 +00:00
|
|
|
] ++ lib.optionals enableWebkit2gtk [
|
|
|
|
webkitgtk_4_1
|
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
(lib.mesonEnable "webkit2gtk" enableWebkit2gtk)
|
2020-05-15 21:57:56 +00:00
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace meson.build \
|
|
|
|
--replace 'webkit2gtk-4.0' 'webkit2gtk-4.1'
|
|
|
|
'';
|
|
|
|
|
2020-05-15 21:57:56 +00:00
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-05-15 21:57:56 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-15 21:57:56 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Glade";
|
|
|
|
description = "User interface designer for GTK applications";
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
license = licenses.lgpl2;
|
2023-11-16 04:20:00 +00:00
|
|
|
platforms = platforms.unix;
|
2020-05-15 21:57:56 +00:00
|
|
|
};
|
|
|
|
}
|