depot/third_party/nixpkgs/pkgs/by-name/li/libgedit-amtk/package.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

77 lines
1.6 KiB
Nix

{ stdenv
, lib
, fetchFromGitLab
, glib
, gtk3
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, gobject-introspection
, gtk-doc
, docbook-xsl-nons
, gitUpdater
, dbus
, xvfb-run
}:
stdenv.mkDerivation rec {
pname = "libgedit-amtk";
version = "5.9.0";
outputs = [ "out" "dev" "devdoc" ];
src = fetchFromGitLab {
domain = "gitlab.gnome.org";
group = "World";
owner = "gedit";
repo = "libgedit-amtk";
rev = version;
hash = "sha256-D6jZmadUHDtxedw/tCsKHzcWXobs6Vb7dyhbVKqu2Zc=";
};
strictDeps = true;
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
gtk-doc
docbook-xsl-nons
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
propagatedBuildInputs = [
# Required by libgedit-amtk-5.pc
glib
gtk3
];
nativeCheckInputs = [
dbus # For dbus-run-session
];
doCheck = stdenv.hostPlatform.isLinux;
checkPhase = ''
runHook preCheck
export NO_AT_BRIDGE=1
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
runHook postCheck
'';
passthru.updateScript = gitUpdater { };
meta = with lib; {
homepage = "https://gitlab.gnome.org/World/gedit/libgedit-amtk";
changelog = "https://gitlab.gnome.org/World/gedit/libgedit-amtk/-/blob/${version}/NEWS?ref_type=tags";
description = "Actions, Menus and Toolbars Kit for GTK applications";
maintainers = with maintainers; [ manveru bobby285271 ];
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
}