Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zathura: disable tests if cross #224903

Merged
1 commit merged into from Apr 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions pkgs/applications/misc/zathura/core/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
, gtk-mac-integration
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "zathura";
version = "0.5.2";

src = fetchurl {
url = "https://pwmt.org/projects/${pname}/download/${pname}-${version}.tar.xz";
url = "https://pwmt.org/projects/zathura/download/zathura-${finalAttrs.version}.tar.xz";
sha256 = "15314m9chmh5jkrd9vk2h2gwcwkcffv2kjcxkd4v3wmckz5sfjy6";
};

Expand All @@ -25,16 +25,17 @@ stdenv.mkDerivation rec {
"-Dconvert-icon=enabled"
"-Dsynctex=enabled"
# Make sure tests are enabled for doCheck
"-Dtests=enabled"
] ++ lib.optional (!stdenv.isLinux) "-Dseccomp=disabled";
(lib.mesonEnable "tests" finalAttrs.finalPackage.doCheck)
(lib.mesonEnable "seccomp" stdenv.hostPlatform.isLinux)
];

nativeBuildInputs = [
meson ninja pkg-config desktop-file-utils python3.pkgs.sphinx
gettext wrapGAppsHook libxml2 check appstream-glib
meson ninja pkg-config desktop-file-utils python3.pythonForBuild.pkgs.sphinx
gettext wrapGAppsHook libxml2 appstream-glib
];

buildInputs = [
gtk girara libintl sqlite glib file librsvg
gtk girara libintl sqlite glib file librsvg check
texlive.bin.core
] ++ lib.optional stdenv.isLinux libseccomp
++ lib.optional stdenv.isDarwin gtk-mac-integration;
Expand All @@ -48,4 +49,4 @@ stdenv.mkDerivation rec {
platforms = platforms.unix;
maintainers = with maintainers; [ globin ];
};
}
})