66604c92c1
GitOrigin-RevId: 32b8ed738096bafb4cdb7f70347a0f63f9f40151
32 lines
No EOL
841 B
Nix
32 lines
No EOL
841 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ghq";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "x-motemen";
|
|
repo = "ghq";
|
|
rev = "v${version}";
|
|
sha256 = "1i0q9lxdxbyj0l0510cbkwkbycawrx8cxlbdrhb2p2fnk0vqnyiv";
|
|
};
|
|
|
|
vendorSha256 = "1r8lvy2xk0gvlwy6k86wh14ajb6hgs9f1fwfqk17ra1cb404l2lz";
|
|
|
|
buildFlagsArray = ''
|
|
-ldflags=
|
|
-X=main.Version=${version}
|
|
'';
|
|
|
|
postInstall = ''
|
|
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
|
|
'';
|
|
|
|
meta = {
|
|
description = "Remote repository management made easy";
|
|
homepage = "https://github.com/x-motemen/ghq";
|
|
maintainers = with stdenv.lib.maintainers; [ sigma ];
|
|
license = stdenv.lib.licenses.mit;
|
|
};
|
|
} |