mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
tectonic: fixed compilation issue
implements workaround for: https://github.com/NixOS/nixpkgs/issues/166205
inspired by similar fix: b6d4be13d0
This commit is contained in:
parent
85458fd241
commit
2049b08b3b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user