summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtturi <Artturin@artturin.com>2023-01-15 03:46:41 +0200
committerGitHub <noreply@github.com>2023-01-15 03:46:41 +0200
commit131879f79d1e44c9884aa199c2fa23a3141adae8 (patch)
tree8933d2846baeab753e2ee4cd5d5e1a3d8378358a
parentc58002056abf77aeb2ae484ae30bda546e3954d2 (diff)
parent687b02945de06249cadf563bc0cc88a00a277ac7 (diff)
Merge pull request #210096 from wegank/sile-darwin
sile: postpone checks after install
-rw-r--r--pkgs/tools/typesetting/sile/default.nix19
1 files 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 "<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