about summary refs log tree commit diff
path: root/pkgs/tools/typesetting
diff options
context:
space:
mode:
authorPeter A. <ink.splatters@pm.me>2023-11-24 00:33:09 +0100
committerPeter A. <ink.splatters@pm.me>2023-11-25 14:50:42 +0100
commit2049b08b3b9f1e4252c59fba728437068f7fe776 (patch)
tree6a1c53dd3bec9f14a018f925869d2320f5ec84fc /pkgs/tools/typesetting
parent85458fd2416b4168d04a85f89fd19eb931eee210 (diff)
downloadnixlib-2049b08b3b9f1e4252c59fba728437068f7fe776.tar
nixlib-2049b08b3b9f1e4252c59fba728437068f7fe776.tar.gz
nixlib-2049b08b3b9f1e4252c59fba728437068f7fe776.tar.bz2
nixlib-2049b08b3b9f1e4252c59fba728437068f7fe776.tar.lz
nixlib-2049b08b3b9f1e4252c59fba728437068f7fe776.tar.xz
nixlib-2049b08b3b9f1e4252c59fba728437068f7fe776.tar.zst
nixlib-2049b08b3b9f1e4252c59fba728437068f7fe776.zip
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
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r--pkgs/tools/typesetting/tectonic/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/tectonic/default.nix b/pkgs/tools/typesetting/tectonic/default.nix
index 3c8713a4fe53..607e71cfbb44 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