mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-19 20:23:19 +02:00
37 lines
1.3 KiB
Nix
37 lines
1.3 KiB
Nix
{ lib, stdenv, fetchFromGitHub, rustPlatform
|
|
, darwin, fontconfig, harfbuzz, openssl, pkg-config }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "tectonic";
|
|
version = "0.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tectonic-typesetting";
|
|
repo = "tectonic";
|
|
rev = "tectonic@${version}";
|
|
sha256 = "sha256-XQ3KRM12X80JPFMnQs//8ZJEv+AV1sr3BH0Nw/PH0HQ=";
|
|
};
|
|
|
|
cargoSha256 = "sha256-YOg4W933qUBcvo2y3nmvEWqxTfqWKDi3GCoTJWLnXxk=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ fontconfig harfbuzz openssl ]
|
|
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices Cocoa Foundation ]);
|
|
|
|
postInstall = lib.optionalString stdenv.isLinux ''
|
|
install -D dist/appimage/tectonic.desktop -t $out/share/applications/
|
|
install -D dist/appimage/tectonic.svg -t $out/share/icons/hicolor/scalable/apps/
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive";
|
|
homepage = "https://tectonic-typesetting.github.io/";
|
|
changelog = "https://github.com/tectonic-typesetting/tectonic/blob/tectonic@${version}/CHANGELOG.md";
|
|
license = with licenses; [ mit ];
|
|
maintainers = [ maintainers.lluchs maintainers.doronbehar ];
|
|
};
|
|
}
|