diff options
author | Peter A. <ink.splatters@pm.me> | 2023-11-24 00:33:09 +0100 |
---|---|---|
committer | Peter A. <ink.splatters@pm.me> | 2023-11-25 14:50:42 +0100 |
commit | 2049b08b3b9f1e4252c59fba728437068f7fe776 (patch) | |
tree | 6a1c53dd3bec9f14a018f925869d2320f5ec84fc | |
parent | 85458fd2416b4168d04a85f89fd19eb931eee210 (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
-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 |