2023-08-07 14:00:41 +00:00
|
|
|
|
{ stdenv
|
|
|
|
|
, lib
|
|
|
|
|
, fetchurl
|
2023-12-09 04:11:31 +00:00
|
|
|
|
, substituteAll
|
2023-08-07 14:00:41 +00:00
|
|
|
|
, pkg-config
|
|
|
|
|
, gi-docgen
|
|
|
|
|
, gobject-introspection
|
|
|
|
|
, meson
|
|
|
|
|
, ninja
|
2024-10-11 10:26:46 +00:00
|
|
|
|
, vala
|
2023-08-07 14:00:41 +00:00
|
|
|
|
, gjs
|
|
|
|
|
, glib
|
|
|
|
|
, lua5_1
|
|
|
|
|
, python3
|
2024-08-18 08:29:37 +00:00
|
|
|
|
, spidermonkey_128
|
2023-08-07 14:00:41 +00:00
|
|
|
|
, gnome
|
|
|
|
|
}:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "libpeas";
|
2024-09-16 15:43:54 +00:00
|
|
|
|
version = "2.0.5";
|
2023-08-07 14:00:41 +00:00
|
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2024-09-16 15:43:54 +00:00
|
|
|
|
hash = "sha256-N28vc9cxtU4T3bqx2Rtjgs9qmAUk3vRN9irdFUid5t0=";
|
2023-08-07 14:00:41 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-12-09 04:11:31 +00:00
|
|
|
|
patches = [
|
|
|
|
|
# Make PyGObject’s gi library available.
|
|
|
|
|
(substituteAll {
|
|
|
|
|
src = ./fix-paths.patch;
|
|
|
|
|
pythonPaths = lib.concatMapStringsSep ", " (pkg: "'${pkg}/${python3.sitePackages}'") [
|
|
|
|
|
python3.pkgs.pygobject3
|
|
|
|
|
];
|
|
|
|
|
})
|
|
|
|
|
];
|
|
|
|
|
|
2023-08-07 14:00:41 +00:00
|
|
|
|
depsBuildBuild = [
|
|
|
|
|
pkg-config
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
|
gi-docgen
|
|
|
|
|
gobject-introspection
|
|
|
|
|
meson
|
|
|
|
|
ninja
|
|
|
|
|
pkg-config
|
2024-10-11 10:26:46 +00:00
|
|
|
|
vala
|
2023-08-07 14:00:41 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
gjs
|
|
|
|
|
glib
|
|
|
|
|
lua5_1
|
|
|
|
|
lua5_1.pkgs.lgi
|
|
|
|
|
python3
|
|
|
|
|
python3.pkgs.pygobject3
|
2024-08-18 08:29:37 +00:00
|
|
|
|
spidermonkey_128
|
2023-08-07 14:00:41 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
|
# Required by libpeas-2.pc
|
|
|
|
|
gobject-introspection
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
|
"-Dgtk_doc=true"
|
2024-10-11 10:26:46 +00:00
|
|
|
|
"-Dvapi=true"
|
2023-08-07 14:00:41 +00:00
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
|
# Checks lua51 and lua5.1 executable but we have non of them.
|
|
|
|
|
substituteInPlace meson.build --replace \
|
|
|
|
|
"find_program('lua51', required: false)" \
|
|
|
|
|
"find_program('lua', required: false)"
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
|
updateScript = gnome.updateScript {
|
|
|
|
|
attrPath = "libpeas2";
|
|
|
|
|
packageName = "libpeas";
|
|
|
|
|
versionPolicy = "odd-unstable";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
|
description = "GObject-based plugins engine";
|
2024-04-30 14:44:27 +00:00
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libpeas";
|
2023-08-07 14:00:41 +00:00
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
|
};
|
|
|
|
|
}
|