nixpkgs/pkgs/development/libraries/libpeas/default.nix
Bobby Rong 74a418e0fb
libpeas: Fix update script
libpeas 2.0 has breaking API changes, let's freeze the update.
2023-10-06 23:34:42 +08:00

78 lines
1.4 KiB
Nix

{ stdenv
, lib
, fetchurl
, meson
, ninja
, pkg-config
, gettext
, gi-docgen
, gnome
, glib
, gtk3
, gobject-introspection
, python3
, ncurses
}:
stdenv.mkDerivation rec {
pname = "libpeas";
version = "1.36.0";
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "KXy5wszNjoYXYj0aPoQVtFMLjlqJPjUnu/0e3RMje0w=";
};
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
pkg-config
meson
ninja
gettext
gi-docgen
gobject-introspection
];
buildInputs = [
glib
gtk3
ncurses
python3
python3.pkgs.pygobject3
];
propagatedBuildInputs = [
# Required by libpeas-1.0.pc
gobject-introspection
];
mesonFlags = [
"-Dgtk_doc=true"
];
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
passthru = {
updateScript = gnome.updateScript {
packageName = pname;
versionPolicy = "odd-unstable";
freeze = true;
};
};
meta = with lib; {
description = "A GObject-based plugins engine";
homepage = "https://wiki.gnome.org/Projects/Libpeas";
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = teams.gnome.members;
};
}