Loading pkgs/by-name/to/tombi/package.nix +12 −0 Original line number Diff line number Diff line { stdenv, lib, rustPlatform, fetchFromGitHub, versionCheckHook, installShellFiles, }: rustPlatform.buildRustPackage (finalAttrs: { Loading @@ -26,9 +28,19 @@ rustPlatform.buildRustPackage (finalAttrs: { --replace-fail 'version = "0.0.0-dev"' 'version = "${finalAttrs.version}"' ''; nativeBuildInputs = [ installShellFiles ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd tombi \ --bash <($out/bin/tombi completion bash) \ --fish <($out/bin/tombi completion fish) \ --zsh <($out/bin/tombi completion zsh) ''; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; meta = { Loading Loading
pkgs/by-name/to/tombi/package.nix +12 −0 Original line number Diff line number Diff line { stdenv, lib, rustPlatform, fetchFromGitHub, versionCheckHook, installShellFiles, }: rustPlatform.buildRustPackage (finalAttrs: { Loading @@ -26,9 +28,19 @@ rustPlatform.buildRustPackage (finalAttrs: { --replace-fail 'version = "0.0.0-dev"' 'version = "${finalAttrs.version}"' ''; nativeBuildInputs = [ installShellFiles ]; postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd tombi \ --bash <($out/bin/tombi completion bash) \ --fish <($out/bin/tombi completion fish) \ --zsh <($out/bin/tombi completion zsh) ''; nativeInstallCheckInputs = [ versionCheckHook ]; doInstallCheck = true; meta = { Loading