diff options
author | Peter A. <ink.splatters@pm.me> | 2023-11-24 00:33:09 +0100 |
---|---|---|
committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-11-27 02:26:27 +0000 |
commit | 1263998322734aef49a7a99431ac449bbc4ff798 (patch) | |
tree | dc019efb28c880981bd881450aa389026c9baeca /pkgs/tools/typesetting | |
parent | 8bb8ec3bc165439595fa7bac396a2d3ee76fd5fd (diff) |
tectonic: fixed compilation issue
implements workaround for: https://github.com/NixOS/nixpkgs/issues/166205 inspired by similar fix: https://github.com/NixOS/nixpkgs/pull/269340/commits/b6d4be13d055408c55651f45f1142aba0c26dd87 (cherry picked from commit 2049b08b3b9f1e4252c59fba728437068f7fe776)
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r-- | pkgs/tools/typesetting/tectonic/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tectonic/default.nix b/pkgs/tools/typesetting/tectonic/default.nix index 3c8713a4fe532..607e71cfbb449 100644 --- a/pkgs/tools/typesetting/tectonic/default.nix +++ b/pkgs/tools/typesetting/tectonic/default.nix @@ -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 |