1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

gitg: disable tests

They started faiing with the same issue as before they were enabled in 2019.
I tried running them in xvfb and dbus session (see e.g. libdazzle expression) but without success.
I wonder how it could have worked for so long.ů

I also cleaned up the expression and corrected the license while at it.
This commit is contained in:
Jan Tojnar 2021-04-16 03:53:22 +02:00
parent 8f749012d8
commit e477d7fbeb
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,6 +1,6 @@
{ lib, stdenv { lib
, stdenv
, fetchurl , fetchurl
, fetchpatch
, vala , vala
, gettext , gettext
, pkg-config , pkg-config
@ -36,16 +36,16 @@ stdenv.mkDerivation rec {
sha256 = "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914"; sha256 = "0npg4kqpwl992fgjd2cn3fh84aiwpdp9kd8z7rw2xaj2iazsm914";
}; };
postPatch = '' nativeBuildInputs = [
chmod +x meson_post_install.py gobject-introspection
patchShebangs meson_post_install.py gettext
meson
substituteInPlace tests/libgitg/test-commit.vala --replace "/bin/bash" "${bash}/bin/bash" ninja
''; pkg-config
python3
doCheck = true; vala
wrapGAppsHook
enableParallelBuilding = true; ];
buildInputs = [ buildInputs = [
adwaita-icon-theme adwaita-icon-theme
@ -63,16 +63,14 @@ stdenv.mkDerivation rec {
libsoup libsoup
]; ];
nativeBuildInputs = [ doCheck = false; # FAIL: tests-gitg gtk_style_context_add_provider_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
gobject-introspection
gettext postPatch = ''
meson chmod +x meson_post_install.py
ninja patchShebangs meson_post_install.py
pkg-config
python3 substituteInPlace tests/libgitg/test-commit.vala --replace "/bin/bash" "${bash}/bin/bash"
vala '';
wrapGAppsHook
];
preFixup = '' preFixup = ''
gappsWrapperArgs+=( gappsWrapperArgs+=(
@ -91,7 +89,7 @@ stdenv.mkDerivation rec {
homepage = "https://wiki.gnome.org/Apps/Gitg"; homepage = "https://wiki.gnome.org/Apps/Gitg";
description = "GNOME GUI client to view git repositories"; description = "GNOME GUI client to view git repositories";
maintainers = with maintainers; [ domenkozar ]; maintainers = with maintainers; [ domenkozar ];
license = licenses.gpl2; license = licenses.gpl2Plus;
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }