2022-03-30 09:31:56 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
|
|
|
|
, fetchurl
|
2024-01-25 14:12:00 +00:00
|
|
|
|
, substituteAll
|
2022-03-30 09:31:56 +00:00
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
|
|
|
|
, pkg-config
|
|
|
|
|
, gettext
|
|
|
|
|
, gi-docgen
|
|
|
|
|
, gnome
|
|
|
|
|
, glib
|
|
|
|
|
, gtk3
|
|
|
|
|
, gobject-introspection
|
|
|
|
|
, python3
|
|
|
|
|
, ncurses
|
2024-01-25 14:12:00 +00:00
|
|
|
|
, wrapGAppsHook
|
2020-04-24 23:36:52 +00:00
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "libpeas";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
version = "1.36.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2023-04-12 12:48:02 +00:00
|
|
|
|
sha256 = "KXy5wszNjoYXYj0aPoQVtFMLjlqJPjUnu/0e3RMje0w=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
|
patches = [
|
|
|
|
|
# Make PyGObject’s gi library available.
|
|
|
|
|
(substituteAll {
|
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
|
pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [
|
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
|
];
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
|
depsBuildBuild = [
|
|
|
|
|
pkg-config
|
|
|
|
|
];
|
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
pkg-config
|
|
|
|
|
meson
|
|
|
|
|
ninja
|
|
|
|
|
gettext
|
|
|
|
|
gi-docgen
|
|
|
|
|
gobject-introspection
|
2024-01-25 14:12:00 +00:00
|
|
|
|
wrapGAppsHook
|
2022-03-30 09:31:56 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
glib
|
|
|
|
|
gtk3
|
|
|
|
|
ncurses
|
|
|
|
|
python3
|
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
|
];
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
# Required by libpeas-1.0.pc
|
|
|
|
|
gobject-introspection
|
|
|
|
|
];
|
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
|
mesonFlags = [
|
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
|
|
|
|
'';
|
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
versionPolicy = "odd-unstable";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
freeze = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "A GObject-based plugins engine";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
mainProgram = "peas-demo";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
homepage = "https://wiki.gnome.org/Projects/Libpeas";
|
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
|
};
|
|
|
|
|
}
|