From 9de4b9989715dc901cf2fd7c69ae70e2646dc9f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Sun, 29 Sep 2024 21:37:58 +0200 Subject: [PATCH] exhaustive: 0.10.0 -> 0.12.0 --- pkgs/development/tools/exhaustive/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/exhaustive/default.nix b/pkgs/development/tools/exhaustive/default.nix index 078d886b0973..0356306bc0c2 100644 --- a/pkgs/development/tools/exhaustive/default.nix +++ b/pkgs/development/tools/exhaustive/default.nix @@ -1,23 +1,28 @@ { lib , buildGoModule , fetchFromGitHub +, nix-update-script }: buildGoModule rec { pname = "exhaustive"; - version = "0.10.0"; + version = "0.12.0"; src = fetchFromGitHub { owner = "nishanths"; repo = "exhaustive"; rev = "v${version}"; - hash = "sha256-vMoFIyZcAdObeQD5bGcQHlGpJv/a8yl/2HUVc8aDiIA="; + hash = "sha256-OLIdtKzCqnBkzdUSIl+UlENeMl3zrBE47pLWPg+6qXw="; }; - vendorHash = "sha256-i3Cgefe4krvH99N233IeEWkVt9AhdzROkJ5JBeTIaAs="; + vendorHash = "sha256-DyN2z6+lA/163k6TTQZ+ypm9s2EV93zvSo/yKQZXvCg="; ldflags = [ "-s" "-w" ]; + passthru = { + updateScript = nix-update-script { }; + }; + meta = with lib; { description = "Check exhaustiveness of switch statements of enum-like constants in Go code"; mainProgram = "exhaustive";