0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
34 lines
862 B
Nix
34 lines
862 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ghq";
|
|
version = "1.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "x-motemen";
|
|
repo = "ghq";
|
|
rev = "v${version}";
|
|
sha256 = "098fik155viylq07az7crzbgswcvhpx0hr68xpvyx0rpri792jbq";
|
|
};
|
|
|
|
vendorSha256 = "0gll132g111vn1hdmdjpkha9rbyppz0qj1ld89gwlk2mqd57jxkd";
|
|
|
|
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 stdenv.lib.maintainers; [ sigma ];
|
|
license = stdenv.lib.licenses.mit;
|
|
};
|
|
}
|