2 This file provides the `tectonic-unwrapped` package. On the other hand,
3 the `tectonic` package is defined in `./wrapper.nix`, by wrapping
4 - [`tectonic-unwrapped`](./default.nix) i.e. this package, and
5 - [`biber-for-tectonic`](./biber.nix),
6 which provides a compatible version of `biber`.
23 rustPlatform.buildRustPackage rec {
27 src = fetchFromGitHub {
28 owner = "tectonic-typesetting";
30 rev = "tectonic@${version}";
31 sha256 = "sha256-xZHYiaQ8ASUwu0ieHIXcjRaH06SQoB6OR1y7Ok+FjAs=";
36 # https://github.com/tectonic-typesetting/tectonic/pull/1155
37 name = "1155-fix-endless-reruns-when-generating-bbl";
38 url = "https://github.com/tectonic-typesetting/tectonic/commit/fbb145cd079497b8c88197276f92cb89685b4d54.patch";
39 hash = "sha256-6FW5MFkOWnqzYX8Eg5DfmLaEhVWKYVZwodE4SGXHKV0=";
45 # cherry-picked from https://github.com/tectonic-typesetting/tectonic/pull/1202
46 name = "1202-fix-build-with-rust-1_80";
47 url = "https://github.com/tectonic-typesetting/tectonic/commit/6b49ca8db40aaca29cb375ce75add3e575558375.patch";
48 hash = "sha256-i1L3XaSuBbsmgOSXIWVqr6EHlHGs8A+6v06kJ3C50sk=";
52 cargoHash = "sha256-Zn+xU6NJOY+jDYrSGsbYGAVqprQ6teEdNvlTNDXuzKs=";
54 nativeBuildInputs = [ pkg-config ];
56 buildFeatures = [ "external-harfbuzz" ];
65 ++ lib.optionals stdenv.hostPlatform.isDarwin (
66 with darwin.apple_sdk.frameworks;
76 # Makes it possible to automatically use the V2 CLI API
77 ln -s $out/bin/tectonic $out/bin/nextonic
79 + lib.optionalString stdenv.hostPlatform.isLinux ''
80 substituteInPlace dist/appimage/tectonic.desktop \
81 --replace Exec=tectonic Exec=$out/bin/tectonic
82 install -D dist/appimage/tectonic.desktop -t $out/share/applications/
83 install -D dist/appimage/tectonic.svg -t $out/share/icons/hicolor/scalable/apps/
89 description = "Modernized, complete, self-contained TeX/LaTeX engine, powered by XeTeX and TeXLive";
90 homepage = "https://tectonic-typesetting.github.io/";
91 changelog = "https://github.com/tectonic-typesetting/tectonic/blob/tectonic@${version}/CHANGELOG.md";
92 license = with licenses; [ mit ];
93 mainProgram = "tectonic";
94 maintainers = with maintainers; [