2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform
|
2018-05-27 12:25:55 +00:00
|
|
|
, darwin, fontconfig, harfbuzz, openssl, pkgconfig }:
|
2017-08-21 20:49:10 +00:00
|
|
|
|
2018-02-20 22:13:42 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "tectonic";
|
2018-12-06 23:18:09 +00:00
|
|
|
version = "0.1.11";
|
2017-08-21 20:49:10 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tectonic-typesetting";
|
|
|
|
repo = "tectonic";
|
|
|
|
rev = "v${version}";
|
2018-12-06 23:18:09 +00:00
|
|
|
sha256 = "1j98qxlq74vs8nf2jsn2xw9iyrf8kih4v0hrvznkhcab6bpibp2x";
|
2017-08-21 20:49:10 +00:00
|
|
|
};
|
|
|
|
|
2019-05-25 11:03:08 +00:00
|
|
|
cargoSha256 = "0hsm5a40lc3gy1zrfrchp7zby17xjv5a4llqr4xmka07y7sk08fn";
|
2017-08-21 20:49:10 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2018-05-27 12:25:55 +00:00
|
|
|
buildInputs = [ fontconfig harfbuzz openssl ]
|
2018-04-03 12:33:19 +00:00
|
|
|
++ stdenv.lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices Cocoa Foundation ]);
|
2017-08-21 20:49:10 +00:00
|
|
|
|
|
|
|
# tests fail due to read-only nix store
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive";
|
|
|
|
homepage = https://tectonic-typesetting.github.io/;
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = [ maintainers.lluchs ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|