mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 22:36:23 +01:00
Merge pull request #295314 from bryango/tectonic-inherit-argv0
tectonic: --inherit-argv0 in the wrapper
This commit is contained in:
commit
443b6c7820
2 changed files with 8 additions and 1 deletions
|
@ -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'
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue