Skip to content

Commit

Permalink
tectonic: fixed compilation issue
Browse files Browse the repository at this point in the history
implements workaround for: #166205

inspired by similar fix: b6d4be1
  • Loading branch information
ink-splatters committed Nov 25, 2023
1 parent 85458fd commit 2049b08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkgs/tools/typesetting/tectonic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ icu fontconfig harfbuzz openssl ]
++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ ApplicationServices Cocoa Foundation ]);

# workaround for https://github.com/NixOS/nixpkgs/issues/166205
NIX_LDFLAGS = lib.optionalString (stdenv.cc.isClang && stdenv.cc.libcxx != null) " -l${stdenv.cc.libcxx.cxxabi.libName}";

postInstall = lib.optionalString stdenv.isLinux ''
substituteInPlace dist/appimage/tectonic.desktop \
--replace Exec=tectonic Exec=$out/bin/tectonic
Expand Down

0 comments on commit 2049b08

Please sign in to comment.