From 4a0f01a9f597605c7c9c2749f81f39087fa6fb99 Mon Sep 17 00:00:00 2001 From: weriomat Date: Mon, 4 May 2026 19:07:56 +0200 Subject: [PATCH] tectonic-unwrapped: Install shell completions --- pkgs/by-name/te/tectonic-unwrapped/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/te/tectonic-unwrapped/package.nix b/pkgs/by-name/te/tectonic-unwrapped/package.nix index 27270b54c86b..68d0cd3f4d1e 100644 --- a/pkgs/by-name/te/tectonic-unwrapped/package.nix +++ b/pkgs/by-name/te/tectonic-unwrapped/package.nix @@ -14,6 +14,7 @@ # nativeBuildInputs pkg-config, + installShellFiles, # buildInputs fontconfig, @@ -40,6 +41,7 @@ rustPlatform.buildRustPackage (finalAttrs: { nativeBuildInputs = [ pkg-config + installShellFiles ]; buildFeatures = [ "external-harfbuzz" ]; @@ -92,6 +94,12 @@ rustPlatform.buildRustPackage (finalAttrs: { --replace-fail Exec=tectonic Exec=$out/bin/tectonic install -Dm644 dist/appimage/tectonic.desktop -t $out/share/applications/ install -Dm644 dist/appimage/tectonic.svg -t $out/share/icons/hicolor/scalable/apps/ + '' + + lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' + installShellCompletion --cmd nextonic \ + --bash <($out/bin/nextonic show shell-completions bash) \ + --zsh <($out/bin/nextonic show shell-completions zsh) \ + --fish <($out/bin/nextonic show shell-completions fish) ''; checkFlags = [