Merge pull request #210096 from wegank/sile-darwin
sile: postpone checks after install
This commit is contained in:
commit
131879f79d
@ -12,6 +12,8 @@
|
|||||||
, libiconv
|
, libiconv
|
||||||
, makeFontsConf
|
, makeFontsConf
|
||||||
, gentium
|
, gentium
|
||||||
|
, runCommand
|
||||||
|
, sile
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -69,12 +71,20 @@ stdenv.mkDerivation rec {
|
|||||||
]
|
]
|
||||||
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AppKit
|
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.AppKit
|
||||||
;
|
;
|
||||||
checkInputs = [
|
|
||||||
poppler_utils
|
|
||||||
];
|
|
||||||
passthru = {
|
passthru = {
|
||||||
# So it will be easier to inspect this environment, in comparison to others
|
# So it will be easier to inspect this environment, in comparison to others
|
||||||
inherit luaEnv;
|
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 = ''
|
postPatch = ''
|
||||||
@ -91,8 +101,6 @@ stdenv.mkDerivation rec {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
doCheck = true;
|
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
preBuild = lib.optionalString stdenv.cc.isClang ''
|
preBuild = lib.optionalString stdenv.cc.isClang ''
|
||||||
@ -106,7 +114,6 @@ stdenv.mkDerivation rec {
|
|||||||
outputs = [ "out" "doc" "man" "dev" ];
|
outputs = [ "out" "doc" "man" "dev" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
broken = stdenv.isDarwin;
|
|
||||||
description = "A typesetting system";
|
description = "A typesetting system";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
SILE is a typesetting system; its job is to produce beautiful
|
SILE is a typesetting system; its job is to produce beautiful
|
||||||
|
Loading…
Reference in New Issue
Block a user