sile: build and install documentation (self test)
- added primary fonts (some non free fonts are missing, but sile selects alternative fonts) used by documentation
This commit is contained in:
parent
34aa254f9e
commit
b08408566d
@ -1,6 +1,7 @@
|
|||||||
{ stdenv, darwin, fetchurl, makeWrapper, pkgconfig
|
{ stdenv, darwin, fetchurl, makeWrapper, pkgconfig
|
||||||
, harfbuzz, icu, lpeg, luaexpat, luazlib, luafilesystem, luasocket, luasec
|
, harfbuzz, icu, lpeg, luaexpat, luazlib, luafilesystem, luasocket, luasec
|
||||||
, fontconfig, lua, libiconv
|
, fontconfig, lua, libiconv
|
||||||
|
, makeFontsConf, gentium, gentium-book-basic, dejavu_fonts
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
@ -40,15 +41,37 @@ stdenv.mkDerivation rec {
|
|||||||
LUA_PATH = luaPath;
|
LUA_PATH = luaPath;
|
||||||
LUA_CPATH = luaCPath;
|
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 = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/sile \
|
wrapProgram $out/bin/sile \
|
||||||
--set LUA_PATH "${luaPath};" \
|
--set LUA_PATH "${luaPath};" \
|
||||||
--set LUA_CPATH "${luaCPath};" \
|
--set LUA_CPATH "${luaCPath};" \
|
||||||
|
|
||||||
|
install -D -t $out/share/doc/sile documentation/*.pdf
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Hack to avoid TMPDIR in RPATHs.
|
# Hack to avoid TMPDIR in RPATHs.
|
||||||
preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" '';
|
preFixup = ''rm -rf "$(pwd)" && mkdir "$(pwd)" '';
|
||||||
|
|
||||||
|
outputs = [ "out" "doc" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "A typesetting system";
|
description = "A typesetting system";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user