nixpkgs/pkgs/development/libraries/libpeas/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.3 KiB
Nix
Raw Normal View History

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