nixpkgs/pkgs/by-name/li/libgedit-amtk/package.nix

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

77 lines
1.5 KiB
Nix
Raw Normal View History

{ stdenv
, lib
, fetchFromGitHub
, glib
2020-09-21 00:19:39 +00:00
, gtk3
, meson
, mesonEmulatorHook
, ninja
, pkg-config
2020-09-21 00:19:39 +00:00
, gobject-introspection
, gtk-doc
, docbook-xsl-nons
, gitUpdater
2020-09-21 00:19:39 +00:00
, dbus
2021-05-08 13:45:03 +00:00
, xvfb-run
2020-09-21 00:19:39 +00:00
}:
stdenv.mkDerivation rec {
pname = "libgedit-amtk";
version = "5.8.0";
outputs = [ "out" "dev" "devdoc" ];
2018-06-21 11:08:26 +00:00
src = fetchFromGitHub {
owner = "gedit-technology";
repo = "libgedit-amtk";
rev = version;
hash = "sha256-U77/KMZw9k9ukebCXVXAsCa4uJaTgw9irfZ/l0303kk=";
2018-06-21 11:08:26 +00:00
};
strictDeps = true;
2018-06-21 11:08:26 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
gtk-doc
docbook-xsl-nons
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
2018-06-21 11:08:26 +00:00
];
propagatedBuildInputs = [
# Required by libgedit-amtk-5.pc
glib
2019-02-13 21:47:50 +00:00
gtk3
2018-06-21 11:08:26 +00:00
];
nativeCheckInputs = [
dbus # For dbus-run-session
];
2018-06-21 11:08:26 +00:00
doCheck = stdenv.isLinux;
checkPhase = ''
runHook preCheck
2018-06-21 11:08:26 +00:00
export NO_AT_BRIDGE=1
2021-05-08 13:45:03 +00:00
${xvfb-run}/bin/xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
2022-11-21 02:03:50 +00:00
--config-file=${dbus}/share/dbus-1/session.conf \
meson test --print-errorlogs
runHook postCheck
2018-06-21 11:08:26 +00:00
'';
passthru.updateScript = gitUpdater {
odd-unstable = true;
};
2018-06-21 11:08:26 +00:00
meta = with lib; {
homepage = "https://github.com/gedit-technology/libgedit-amtk";
description = "Actions, Menus and Toolbars Kit for GTK applications";
maintainers = with maintainers; [ manveru bobby285271 ];
2018-06-21 11:08:26 +00:00
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
}