diff --git a/pkgs/by-name/ti/tint/package.nix b/pkgs/by-name/ti/tint/package.nix index 525070c414e4..d7689b117478 100644 --- a/pkgs/by-name/ti/tint/package.nix +++ b/pkgs/by-name/ti/tint/package.nix @@ -3,17 +3,18 @@ buildGoModule, fetchFromGitHub, versionCheckHook, + nix-update-script, }: -buildGoModule rec { +buildGoModule (finalAttrs: { pname = "tint"; - version = "0.1.6"; + version = "0.1.7"; src = fetchFromGitHub { owner = "ashish0kumar"; repo = "tint"; - tag = "v${version}"; - hash = "sha256-TZYAcs6h4Fv0XpUqzgCcAF5cHGaVKMMCJ6MTAH6C6Jo="; + tag = "v${finalAttrs.version}"; + hash = "sha256-Y2Jb/YF7rpEAmDVI5wEB+Sy7Ap2XxNrKQfnAogVdYSY="; }; vendorHash = null; @@ -21,7 +22,7 @@ buildGoModule rec { ldflags = [ "-s" "-w" - "-X main.version=${version}" + "-X main.version=${finalAttrs.version}" ]; doInstallCheck = true; @@ -29,7 +30,10 @@ buildGoModule rec { versionCheckHook ]; + passthru.updateScript = nix-update-script { }; + meta = { + changelog = "https://github.com/ashish0kumar/tint/releases/tag/v${finalAttrs.version}"; description = "Command-line tool to recolor images using theme palettes"; homepage = "https://github.com/ashish0kumar/tint"; license = lib.licenses.mit; @@ -37,4 +41,4 @@ buildGoModule rec { mainProgram = "tint"; platforms = lib.platforms.unix; }; -} +})