Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tectonic: 0.15.0 -> 0.15.0-unstable-2025-02-21 #384610

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 18 additions & 39 deletions pkgs/by-name/te/tectonic-unwrapped/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,66 +11,38 @@
stdenv,
fetchFromGitHub,
rustPlatform,
darwin,
fontconfig,
harfbuzzFull,
openssl,
pkg-config,
icu,
fetchpatch2,
}:

rustPlatform.buildRustPackage rec {
pname = "tectonic";
version = "0.15.0";
# https://github.com/tectonic-typesetting/tectonic/issues/1263
version = "0.15.0-unstable-2025-02-21";

src = fetchFromGitHub {
owner = "tectonic-typesetting";
repo = "tectonic";
rev = "tectonic@${version}";
sha256 = "sha256-dZnUu0g86WJIIvwMgdmwb6oYqItxoYrGQTFNX7I61Bs=";
rev = "c2ae25ff1facd9e9cce31b48944b867773f709ec";
sha256 = "sha256-cDCJ1Tu2lA4KvN2EBUtT0MvMtkejd8YAoNRkNeoreEc=";
};

patches = [
(fetchpatch2 {
# https://github.com/tectonic-typesetting/tectonic/pull/1155
name = "1155-fix-endless-reruns-when-generating-bbl";
url = "https://github.com/tectonic-typesetting/tectonic/commit/fbb145cd079497b8c88197276f92cb89685b4d54.patch";
hash = "sha256-6FW5MFkOWnqzYX8Eg5DfmLaEhVWKYVZwodE4SGXHKV0=";
})
];

cargoPatches = [
(fetchpatch2 {
# cherry-picked from https://github.com/tectonic-typesetting/tectonic/pull/1202
name = "1202-fix-build-with-rust-1_80";
url = "https://github.com/tectonic-typesetting/tectonic/commit/6b49ca8db40aaca29cb375ce75add3e575558375.patch";
hash = "sha256-i1L3XaSuBbsmgOSXIWVqr6EHlHGs8A+6v06kJ3C50sk=";
})
];

useFetchCargoVendor = true;
cargoHash = "sha256-OMa89riyopKMQf9E9Fr7Qs4hFfEfjnDFzaSWFtkYUXE=";
cargoHash = "sha256-dBthzRS+9wqKCwmo5cY/ynTdfIPK3QCsbZ2vAQ8q7aM=";

nativeBuildInputs = [ pkg-config ];

buildFeatures = [ "external-harfbuzz" ];

buildInputs =
[
icu
fontconfig
harfbuzzFull
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
ApplicationServices
Cocoa
Foundation
]
);
buildInputs = [
icu
fontconfig
harfbuzzFull
openssl
];

postInstall =
''
Expand All @@ -85,6 +57,13 @@ rustPlatform.buildRustPackage rec {
'';

doCheck = true;
preCheck = ''
export HOME="$(mktemp -d)"
'';
checkFlags = [
# https://github.com/tectonic-typesetting/tectonic/issues/1263
"--skip=tests::no_segfault_after_failed_compilation"
];

meta = {
description = "Modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive";
Expand Down