gtksourceview{3,4,5}: enable __structuredAttrs and strictDeps (#538088)

This commit is contained in:
Sandro
2026-08-14 14:24:59 +00:00
committed by GitHub
3 changed files with 17 additions and 3 deletions

View File

@@ -24,6 +24,9 @@ stdenv.mkDerivation (finalAttrs: {
pname = "gtksourceview";
version = "3.24.11";
__structuredAttrs = true;
strictDeps = true;
src =
let
inherit (finalAttrs) pname version;
@@ -51,6 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
perl
gobject-introspection
vala
libxml2 # xmllint
];
nativeCheckInputs = [
@@ -81,11 +85,15 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = stdenv.hostPlatform.isLinux;
checkPhase = ''
runHook preCheck
NO_AT_BRIDGE=1 \
XDG_DATA_DIRS="$XDG_DATA_DIRS:${shared-mime-info}/share" \
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus}/share/dbus-1/session.conf \
make check
runHook postCheck
'';
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;

View File

@@ -28,6 +28,9 @@ stdenv.mkDerivation (finalAttrs: {
pname = "gtksourceview";
version = "4.8.4";
__structuredAttrs = true;
strictDeps = true;
outputs = [
"out"
"dev"
@@ -70,6 +73,7 @@ stdenv.mkDerivation (finalAttrs: {
perl
gobject-introspection
vala
libxml2 # xmllint
];
buildInputs = [
@@ -100,9 +104,7 @@ stdenv.mkDerivation (finalAttrs: {
--replace "if generate_vapi" "if false"
'';
# Broken by PCRE 2 bump in GLib.
# https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/283
doCheck = false;
doCheck = stdenv.hostPlatform.isLinux;
checkPhase = ''
runHook preCheck

View File

@@ -27,6 +27,9 @@ stdenv.mkDerivation (finalAttrs: {
pname = "gtksourceview";
version = "5.20.0";
__structuredAttrs = true;
strictDeps = true;
outputs = [
"out"
"dev"
@@ -55,6 +58,7 @@ stdenv.mkDerivation (finalAttrs: {
vala
gi-docgen
gtk4 # for gtk4-update-icon-cache checked during configure
libxml2 # xmllint
];
buildInputs = [