From 687b02945de06249cadf563bc0cc88a00a277ac7 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Thu, 12 Jan 2023 21:54:05 +0100 Subject: sile: postpone checks to passthru.tests --- pkgs/tools/typesetting/sile/default.nix | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/typesetting/sile/default.nix b/pkgs/tools/typesetting/sile/default.nix index e1a75976cfb1..a20aa5dc09e0 100644 --- a/pkgs/tools/typesetting/sile/default.nix +++ b/pkgs/tools/typesetting/sile/default.nix @@ -12,6 +12,8 @@ , libiconv , makeFontsConf , gentium +, runCommand +, sile }: let @@ -69,12 +71,20 @@ stdenv.mkDerivation rec { ] ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AppKit ; - checkInputs = [ - poppler_utils - ]; passthru = { # So it will be easier to inspect this environment, in comparison to others inherit luaEnv; + # Copied from Makefile.am + tests.test = lib.optionalAttrs (!(stdenv.isDarwin && stdenv.isAarch64)) ( + runCommand "${pname}-test" + { + nativeBuildInputs = [ poppler_utils sile ]; + inherit FONTCONFIG_FILE; + } '' + output=$(mktemp -t selfcheck-XXXXXX.pdf) + echo "foo" | sile -o $output - + pdfinfo $output | grep "SILE v${version}" > $out + ''); }; postPatch = '' @@ -91,8 +101,6 @@ stdenv.mkDerivation rec { ]; }; - doCheck = true; - enableParallelBuilding = true; preBuild = lib.optionalString stdenv.cc.isClang '' @@ -106,7 +114,6 @@ stdenv.mkDerivation rec { outputs = [ "out" "doc" "man" "dev" ]; meta = with lib; { - broken = stdenv.isDarwin; description = "A typesetting system"; longDescription = '' SILE is a typesetting system; its job is to produce beautiful -- cgit v1.2.3