glab: 1.22.0 -> 1.23.0, switch to new upstream (#203337)

Co-authored-by: Naïm Favier <n@monade.li>
This commit is contained in:
Sandro 2022-11-30 16:37:24 +01:00 committed by GitHub
parent f97953cc07
commit 72fad62739
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +1,21 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, stdenv }:
{ lib, buildGoModule, fetchFromGitLab, installShellFiles, stdenv }:
buildGoModule rec {
pname = "glab";
version = "1.22.0";
version = "1.23.0";
src = fetchFromGitHub {
owner = "profclems";
repo = pname;
src = fetchFromGitLab {
owner = "gitlab-org";
repo = "cli";
rev = "v${version}";
sha256 = "sha256-7w6cbeZYhmV0EXXcWlXFq2pQGGxc5Ok4bba0g3fcgmE=";
sha256 = "sha256-NHBLaUEWurWnwbLiEsi3/pHqxKcgjjx+oRAGZXxni/Q=";
};
vendorSha256 = "sha256-hGpJXCs5lZ6QQHr6LW1fCT+CVtOaUpYXJPchDPDdbaM=";
vendorSha256 = "sha256-NuK63ibb1t+HnSR/gCFS7HWVtfGLazVx2M+qxRNCR1I=";
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
@ -34,9 +36,9 @@ buildGoModule rec {
'';
meta = with lib; {
description = "An open-source GitLab command line tool";
description = "GitLab CLI tool bringing GitLab to your command line";
license = licenses.mit;
homepage = "https://glab.readthedocs.io/";
homepage = "https://gitlab.com/gitlab-org/cli";
maintainers = with maintainers; [ freezeboy ];
};
}