nixpkgs/pkgs/tools/typesetting/tectonic/default.nix

33 lines
1,012 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, rustPlatform
, 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";
version = "0.1.11";
2017-08-21 20:49:10 +00:00
src = fetchFromGitHub {
owner = "tectonic-typesetting";
repo = "tectonic";
rev = "v${version}";
sha256 = "1j98qxlq74vs8nf2jsn2xw9iyrf8kih4v0hrvznkhcab6bpibp2x";
2017-08-21 20:49:10 +00:00
};
cargoSha256 = "0hsm5a40lc3gy1zrfrchp7zby17xjv5a4llqr4xmka07y7sk08fn";
2017-08-21 20:49:10 +00:00
nativeBuildInputs = [ pkgconfig ];
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;
};
}