diff options
author | Doron Behar <doron.behar@gmail.com> | 2024-03-12 16:54:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-12 16:54:38 +0200 |
commit | 443b6c7820237e42a9877eb75cd140c306bfd0c0 (patch) | |
tree | 1d3b4102e5c770e2c6fae1abce47905cbaa54a75 /pkgs/tools/typesetting | |
parent | 04e1a2d69c26f3d7f1d16551842a9ec3b16e3223 (diff) | |
parent | 77c6cf9ec2b5eba2987a23db37ee914f11de2814 (diff) |
Merge pull request #295314 from bryango/tectonic-inherit-argv0
tectonic: --inherit-argv0 in the wrapper
Diffstat (limited to 'pkgs/tools/typesetting')
-rw-r--r-- | pkgs/tools/typesetting/tectonic/tests.nix | 6 | ||||
-rw-r--r-- | pkgs/tools/typesetting/tectonic/wrapper.nix | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/tools/typesetting/tectonic/tests.nix b/pkgs/tools/typesetting/tectonic/tests.nix index da1961c8e42d8..eac66f19599e0 100644 --- a/pkgs/tools/typesetting/tectonic/tests.nix +++ b/pkgs/tools/typesetting/tectonic/tests.nix @@ -90,4 +90,10 @@ lib.mapAttrs networkRequiringTestPkg { tectonic -X new cat Tectonic.toml | grep "${tectonic.bundleUrl}" ''; + + /** test that the `nextonic -> tectonic` symlink is working as intended */ + nextonic = '' + nextonic new 2>&1 \ + | grep '"version 2" Tectonic command-line interface activated' + ''; } diff --git a/pkgs/tools/typesetting/tectonic/wrapper.nix b/pkgs/tools/typesetting/tectonic/wrapper.nix index 42125e7855d80..900c695c92182 100644 --- a/pkgs/tools/typesetting/tectonic/wrapper.nix +++ b/pkgs/tools/typesetting/tectonic/wrapper.nix @@ -46,7 +46,8 @@ symlinkJoin { + '' makeWrapper ${lib.getBin tectonic-unwrapped}/bin/tectonic $out/bin/tectonic \ --prefix PATH : "${lib.getBin biber-for-tectonic}/bin" \ - --add-flags "--web-bundle ${tectonic.passthru.bundleUrl}" + --add-flags "--web-bundle ${tectonic.passthru.bundleUrl}" \ + --inherit-argv0 ## make sure binary name e.g. `nextonic` is passed along ln -s $out/bin/tectonic $out/bin/nextonic ''; |