diff options
author | markuskowa <markus.kowalewski@gmail.com> | 2019-03-07 13:40:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-07 13:40:53 +0100 |
commit | 7f96a9fbce0629c9efdf5491636904400795b7d0 (patch) | |
tree | 0aab7e901f1e85f31f1eaf0720d1ff881cee696c /pkgs/tools/typesetting | |
parent | 1f7b8c71a9fbdfaf087e8a55b0179a0b2803e142 (diff) | |
parent | b08408566d4ebf186da19a03c6ab9bf8ff2646f7 (diff) |
Merge pull request #56873 from ck3d/sile-doc
sile: build and install documentation (self test)
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r-- | pkgs/tools/typesetting/sile/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/sile/default.nix b/pkgs/tools/typesetting/sile/default.nix index d12d39016ff1..c507db3cf1fe 100644 --- a/pkgs/tools/typesetting/sile/default.nix +++ b/pkgs/tools/typesetting/sile/default.nix @@ -1,6 +1,7 @@ { stdenv, darwin, fetchurl, makeWrapper, pkgconfig , harfbuzz, icu, lpeg, luaexpat, luazlib, luafilesystem, luasocket, luasec , fontconfig, lua, libiconv +, makeFontsConf, gentium, gentium-book-basic, dejavu_fonts }: with stdenv.lib; @@ -40,15 +41,37 @@ stdenv.mkDerivation rec { LUA_PATH = luaPath; LUA_CPATH = luaCPath; + FONTCONFIG_FILE = makeFontsConf { + fontDirectories = [ + gentium + gentium-book-basic + dejavu_fonts + ]; + }; + + doCheck = stdenv.targetPlatform == stdenv.hostPlatform + && ! stdenv.isAarch64 # random seg. faults + && ! stdenv.isDarwin; # dy lib not found + + enableParallelBuilding = true; + + checkPhase = '' + make documentation/developers.pdf documentation/sile.pdf + ''; + postInstall = '' wrapProgram $out/bin/sile \ --set LUA_PATH "${luaPath};" \ --set LUA_CPATH "${luaCPath};" \ + + install -D -t $out/share/doc/sile documentation/*.pdf ''; # Hack to avoid TMPDIR in RPATHs. preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" ''; + outputs = [ "out" "doc" ]; + meta = { description = "A typesetting system"; longDescription = '' |