tectonic: symlink nextonic for all platforms

Probably this was conditioned on stdenv.isLinux by mistake.
This commit is contained in:
Doron Behar 2023-12-21 18:21:37 +02:00
parent d9c62652be
commit 0a85473c12

View file

@ -33,13 +33,14 @@ rustPlatform.buildRustPackage rec {
# 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 ''
postInstall = ''
# Makes it possible to automatically use the V2 CLI API
ln -s $out/bin/tectonic $out/bin/nextonic
'' + lib.optionalString stdenv.isLinux ''
substituteInPlace dist/appimage/tectonic.desktop \
--replace Exec=tectonic Exec=$out/bin/tectonic
install -D dist/appimage/tectonic.desktop -t $out/share/applications/
install -D dist/appimage/tectonic.svg -t $out/share/icons/hicolor/scalable/apps/
ln -s $out/bin/tectonic $out/bin/nextonic
'';
doCheck = true;