75ca762b89
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
34 lines
843 B
Nix
34 lines
843 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ghq";
|
|
version = "1.1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "x-motemen";
|
|
repo = "ghq";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-kEs844gj1/PW7Kkpn1tvxfruznRIh2pjHCoSWGF1upQ=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-5Eth9v98z1gxf1Fz5Lbn2roX7dSBmA7GRzg8uvT0hTI=";
|
|
|
|
doCheck = false;
|
|
|
|
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 lib.maintainers; [ sigma ];
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|