From e206eef5b626310d0cd0299550123edec17026e7 Mon Sep 17 00:00:00 2001 From: Petr Portnov Date: Fri, 24 Apr 2026 20:27:36 +0300 Subject: [PATCH] typeshare: add nix-update-script --- pkgs/by-name/ty/typeshare/package.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ty/typeshare/package.nix b/pkgs/by-name/ty/typeshare/package.nix index 767336f22ef6..37d341918bb6 100644 --- a/pkgs/by-name/ty/typeshare/package.nix +++ b/pkgs/by-name/ty/typeshare/package.nix @@ -4,6 +4,8 @@ fetchFromGitHub, installShellFiles, stdenv, + versionCheckHook, + nix-update-script, }: rustPlatform.buildRustPackage (finalAttrs: { @@ -13,7 +15,7 @@ rustPlatform.buildRustPackage (finalAttrs: { src = fetchFromGitHub { owner = "1password"; repo = "typeshare"; - rev = "v${finalAttrs.version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-8Pm+z407FDBLy0Hq2+T1rttFKnRWTNPPYTCn11SHcS8="; }; @@ -30,6 +32,11 @@ rustPlatform.buildRustPackage (finalAttrs: { --zsh <($out/bin/typeshare completions zsh) ''; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + + passthru.updateScript = nix-update-script { }; + meta = { description = "Command Line Tool for generating language files with typeshare"; mainProgram = "typeshare";