Merge pull request #210096 from wegank/sile-darwin

sile: postpone checks after install
This commit is contained in:
Artturi 2023-01-15 03:46:41 +02:00 committed by GitHub
commit 131879f79d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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