mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
gtksourceview{3,4,5}: enable __structuredAttrs and strictDeps (#538088)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user