tectonic: symlink nextonic for all platforms
Probably this was conditioned on stdenv.isLinux by mistake.
This commit is contained in:
parent
d9c62652be
commit
0a85473c12
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue