From f1e9a32b0b8f62026c646e70c2734ae8edbd212a Mon Sep 17 00:00:00 2001 From: Benedikt Ritter Date: Wed, 27 Nov 2024 16:52:13 +0100 Subject: [PATCH] packages (gh-get): Update to version 2.0.0 --- packages/gh-get/default.nix | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/packages/gh-get/default.nix b/packages/gh-get/default.nix index 5f762e1..763d88c 100644 --- a/packages/gh-get/default.nix +++ b/packages/gh-get/default.nix @@ -1,19 +1,15 @@ { - stdenvNoCC, + buildGoModule, fetchFromGitHub, }: -stdenvNoCC.mkDerivation rec { +buildGoModule rec { pname = "gh-get"; - version = "1.0.0"; + version = "2.0.0"; src = fetchFromGitHub { owner = "britter"; - repo = pname; + repo = "gh-get"; rev = "v${version}"; - sha256 = "sha256-2o7Ugi8Ba3rso68Onc8tuh/RzWxZ9OTkdJYgo3K6+Gs="; + sha256 = "sha256-9YWftzKNKPxs06yTDvFPpcGHXLzWiNfHcA6kkz6zt0g="; }; - - installPhase = '' - mkdir -p $out/bin - cp gh-get $out/bin - ''; + vendorHash = "sha256-2qgetyUwmoGetgpef1+JU9Av83/MpUfQGOLDxSzoa1E="; }