From f8f49559bfaba2bfe7eb090805e417ff2275dedf Mon Sep 17 00:00:00 2001 From: nicknb Date: Sat, 25 Jul 2026 18:11:01 +0200 Subject: [PATCH] gcli: 2.11.0 -> 2.12.0, point to sourcehut, use finalAttrs The GitHub repo seems to exists purely as a mirror and secondary issue tracker with SourceHut being the preferred platform. --- pkgs/by-name/gc/gcli/package.nix | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/gc/gcli/package.nix b/pkgs/by-name/gc/gcli/package.nix index 4d731e7c8884..9f1ea40297f7 100644 --- a/pkgs/by-name/gc/gcli/package.nix +++ b/pkgs/by-name/gc/gcli/package.nix @@ -1,23 +1,22 @@ { lib, - fetchFromGitHub, + fetchFromSourcehut, stdenv, curl, pkg-config, byacc, flex, - fetchpatch, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "gcli"; - version = "2.11.0"; + version = "2.12.0"; - src = fetchFromGitHub { - owner = "herrhotzenplotz"; + src = fetchFromSourcehut { + owner = "~herrhotzenplotz"; repo = "gcli"; - rev = "v${version}"; - hash = "sha256-KTXAmwLTOGvFlJ52w6PplVlF72CC5JJheGlhJirh2+I="; + rev = "v${finalAttrs.version}"; + hash = "sha256-k691ocg5rkvGJZDp6X9PRIDaNvVPLcJRoXvwPbyxjLE="; }; nativeBuildInputs = [ @@ -30,10 +29,10 @@ stdenv.mkDerivation rec { meta = { description = "Portable Git(Hub|Lab|ea) CLI tool"; homepage = "https://herrhotzenplotz.de/gcli/"; - changelog = "https://github.com/herrhotzenplotz/gcli/releases/tag/v${version}"; + changelog = "https://git.sr.ht/~herrhotzenplotz/gcli/tree/v${finalAttrs.version}/item/Changelog.md"; license = lib.licenses.bsd2; mainProgram = "gcli"; maintainers = with lib.maintainers; [ kenran ]; platforms = lib.platforms.unix; }; -} +})