2020-03-27 07:33:21 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2017-04-15 03:57:38 +01:00
|
|
|
|
2019-09-05 18:40:13 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ghq";
|
2020-06-08 19:58:20 +01:00
|
|
|
version = "1.1.1";
|
2017-04-15 03:57:38 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2020-02-23 11:19:24 +00:00
|
|
|
owner = "x-motemen";
|
2017-04-15 03:57:38 +01:00
|
|
|
repo = "ghq";
|
|
|
|
rev = "v${version}";
|
2020-06-08 19:58:20 +01:00
|
|
|
sha256 = "1gfpvaf10kqgxx1clzsn38n9r4p171zf0z1pf0dybihh6g6hgylj";
|
2017-04-15 03:57:38 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 19:58:20 +01:00
|
|
|
vendorSha256 = "0k2hhx3l3cj3lv2y4w8286sbl7d11cssb99jy7hzskbxbhmalvcj";
|
2017-04-15 03:57:38 +01:00
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X=main.Version=${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 03:57:38 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Remote repository management made easy";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/x-motemen/ghq";
|
2017-04-15 03:57:38 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ sigma ];
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
};
|
2020-05-01 02:59:00 +01:00
|
|
|
}
|