From 99265c7248ee21918ffd45b573ec431c5c0c4e0d Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Thu, 29 Aug 2024 10:46:18 +0200 Subject: [PATCH] uplosi: add passthru.update-script Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/up/uplosi/package.nix | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/up/uplosi/package.nix b/pkgs/by-name/up/uplosi/package.nix index f58db5625ac2..cdf32b8ccfcb 100644 --- a/pkgs/by-name/up/uplosi/package.nix +++ b/pkgs/by-name/up/uplosi/package.nix @@ -1,8 +1,11 @@ -{ lib -, fetchFromGitHub -, buildGoModule -, installShellFiles +{ + lib, + fetchFromGitHub, + buildGoModule, + installShellFiles, + nix-update-script, }: + buildGoModule rec { pname = "uplosi"; version = "0.2.1"; @@ -17,7 +20,10 @@ buildGoModule rec { vendorHash = "sha256-f8Yz99qlN0S0Ybewifc0VQanYXKinb1togBkUwDPSvw="; CGO_ENABLED = "0"; - ldflags = [ "-s" "-w" "-X main.version=${version}" ]; + ldflags = [ + "-s" + "-X main.version=${version}" + ]; nativeBuildInputs = [ installShellFiles ]; @@ -28,13 +34,18 @@ buildGoModule rec { --zsh <($out/bin/uplosi completion zsh) ''; - meta = with lib; { + passthru.updateScript = nix-update-script { }; + + meta = { description = "Upload OS images to cloud provider"; homepage = "https://github.com/edgelesssys/uplosi"; changelog = "https://github.com/edgelesssys/uplosi/releases/tag/v${version}"; - license = licenses.asl20; + license = lib.licenses.asl20; mainProgram = "uplosi"; - maintainers = with maintainers; [ katexochen malt3 ]; - platforms = platforms.unix; + maintainers = with lib.maintainers; [ + katexochen + malt3 + ]; + platforms = lib.platforms.unix; }; }