From 0fa5aa827f076361ed659aa23b953c21af4c978b Mon Sep 17 00:00:00 2001 From: winston Date: Thu, 6 Mar 2025 00:41:58 +0100 Subject: [PATCH] tera-cli: enable for darwin, add nix-update-script --- pkgs/by-name/te/tera-cli/package.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/te/tera-cli/package.nix b/pkgs/by-name/te/tera-cli/package.nix index 66429fa08504..f488bf279f8b 100644 --- a/pkgs/by-name/te/tera-cli/package.nix +++ b/pkgs/by-name/te/tera-cli/package.nix @@ -1,6 +1,7 @@ { lib, fetchFromGitHub, + nix-update-script, rustPlatform, }: rustPlatform.buildRustPackage rec { @@ -10,19 +11,21 @@ rustPlatform.buildRustPackage rec { src = fetchFromGitHub { owner = "chevdor"; repo = "tera-cli"; - rev = "v${version}"; + tag = "v${version}"; hash = "sha256-TN3zkxZC0Y9lev2wmvzwyLU+t4rNwut/dQILIA7+qbw="; }; useFetchCargoVendor = true; cargoHash = "sha256-+qf/MlifpVXzDpADJoTqxU40wDntcPu+bW7eq6/iubk="; - meta = with lib; { + passthru.updateScript = nix-update-script { }; + + meta = { description = "Command line utility to render templates from json|toml|yaml and ENV, using the tera templating engine"; homepage = "https://github.com/chevdor/tera-cli"; - license = licenses.mit; - maintainers = with maintainers; [ _365tuwe ]; + license = lib.licenses.mit; + maintainers = [ lib.maintainers._365tuwe ]; mainProgram = "tera"; - platforms = platforms.linux; + platforms = lib.platforms.unix; }; }