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.
This commit is contained in:
nicknb
2026-07-25 18:11:01 +02:00
parent 630bb08227
commit f8f49559bf
+9 -10
View File
@@ -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;
};
}
})