From 0b3f4689091b2a4bce0e4078759e3b4c6f6f3554 Mon Sep 17 00:00:00 2001 From: Anton Mosich Date: Thu, 1 May 2025 23:08:25 +0200 Subject: [PATCH] unconvert: 0-unstable-2023-09-07 -> 0-unstable-2025-02-16 This also fixes the build, which was failing due to Go being updated. --- pkgs/by-name/un/unconvert/package.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/un/unconvert/package.nix b/pkgs/by-name/un/unconvert/package.nix index 18414630ade3..e9575aa4a48f 100644 --- a/pkgs/by-name/un/unconvert/package.nix +++ b/pkgs/by-name/un/unconvert/package.nix @@ -2,26 +2,29 @@ lib, buildGoModule, fetchFromGitHub, + nix-update-script, }: buildGoModule { pname = "unconvert"; - version = "0-unstable-2023-09-07"; + version = "0-unstable-2025-02-16"; src = fetchFromGitHub { owner = "mdempsky"; repo = "unconvert"; - rev = "415706980c061b6f71ea923bd206aec88785638f"; - hash = "sha256-MchA8uvy+MyQ/VaglBDTC7j/lNIKAtGeeECLoFfH6pI="; + rev = "4a038b3d31f56ff5ba511953b745c80a2317e4ae"; + hash = "sha256-97H5rlb4buRT6I3OUID8/UARFtCTDhIxnPCkpFF9RDs="; }; - vendorHash = "sha256-vZDk+ZNCMP5RRNrgeIowdOKPot7rqM84JhlbfvcQbB4="; + vendorHash = "sha256-Yh33ZvQoMG9YM8bdxlMYEIwH2QMTwv2HSYSmA4C9EpA="; ldflags = [ "-s" "-w" ]; + passthru.updateScript = nix-update-script { extraArgs = lib.singleton "--version=branch"; }; + meta = with lib; { description = "Remove unnecessary type conversions from Go source"; mainProgram = "unconvert";