Skip to content

Commit

Permalink
tectonic, tectonic-unwrapped: fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
bryango committed Feb 24, 2025
1 parent d9731ee commit c606661
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pkgs/by-name/te/tectonic-unwrapped/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{
lib,
stdenv,
clangStdenv,
fetchFromGitHub,
rustPlatform,
fontconfig,
Expand All @@ -19,7 +19,17 @@
fetchpatch2,
}:

rustPlatform.buildRustPackage rec {
let

buildRustPackage = rustPlatform.buildRustPackage.override {
# use clang to work around build failure with GCC 14
# see: https://github.com/tectonic-typesetting/tectonic/issues/1263
stdenv = clangStdenv;
};

in

buildRustPackage rec {
pname = "tectonic";
version = "0.15.0";

Expand Down Expand Up @@ -67,7 +77,7 @@ rustPlatform.buildRustPackage rec {
# Makes it possible to automatically use the V2 CLI API
ln -s $out/bin/tectonic $out/bin/nextonic
''
+ lib.optionalString stdenv.hostPlatform.isLinux ''
+ lib.optionalString clangStdenv.hostPlatform.isLinux ''
substituteInPlace dist/appimage/tectonic.desktop \
--replace Exec=tectonic Exec=$out/bin/tectonic
install -D dist/appimage/tectonic.desktop -t $out/share/applications/
Expand Down

0 comments on commit c606661

Please sign in to comment.