2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2017-04-15 02:57:38 +00:00
|
|
|
|
2019-09-05 17:40:13 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ghq";
|
2023-04-19 16:47:54 +00:00
|
|
|
version = "1.4.2";
|
2017-04-15 02:57:38 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-02-23 11:19:24 +00:00
|
|
|
owner = "x-motemen";
|
2017-04-15 02:57:38 +00:00
|
|
|
repo = "ghq";
|
|
|
|
rev = "v${version}";
|
2023-04-19 16:47:54 +00:00
|
|
|
sha256 = "sha256-ggTx5Kz9cRqOqxxzERv4altf7m1GlreGgOiYCnHyJks=";
|
2017-04-15 02:57:38 +00:00
|
|
|
};
|
|
|
|
|
2023-04-19 16:47:54 +00:00
|
|
|
vendorHash = "sha256-6ZDvU3RQ/1M4DZMFOaQsEuodldB8k+2thXNhvZlVQEg=";
|
2017-04-15 02:57:38 +00:00
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-X=main.Version=${version}"
|
|
|
|
];
|
2017-04-15 02:57:38 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
2020-02-23 11:19:24 +00:00
|
|
|
install -m 444 -D ${src}/misc/zsh/_ghq $out/share/zsh/site-functions/_ghq
|
|
|
|
install -m 444 -D ${src}/misc/bash/_ghq $out/share/bash-completion/completions/_ghq
|
2017-04-15 02:57:38 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Remote repository management made easy";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/x-motemen/ghq";
|
2021-01-15 13:21:58 +00:00
|
|
|
maintainers = with lib.maintainers; [ sigma ];
|
|
|
|
license = lib.licenses.mit;
|
2017-04-15 02:57:38 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
}
|