From 2049b08b3b9f1e4252c59fba728437068f7fe776 Mon Sep 17 00:00:00 2001 From: "Peter A." Date: Fri, 24 Nov 2023 00:33:09 +0100 Subject: [PATCH] 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 --- pkgs/tools/typesetting/tectonic/default.nix | 3 +++ 1 file changed, 3 insertions(+) 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