sile: postpone checks to passthru.tests
This commit is contained in:
parent
b0644b461f
commit
687b02945d
1 changed files with 13 additions and 6 deletions
|
@ -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 "<sile>foo</sile>" | 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
|
||||
|
|
Loading…
Reference in a new issue