2017-04-15 04:57:38 +02:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "ghq-${version}";
|
2017-10-16 06:21:20 +02:00
|
|
|
version = "0.8.0";
|
2017-04-15 04:57:38 +02:00
|
|
|
|
|
|
|
goPackagePath = "github.com/motemen/ghq";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "motemen";
|
|
|
|
repo = "ghq";
|
|
|
|
rev = "v${version}";
|
2017-10-16 06:21:20 +02:00
|
|
|
sha256 = "1gdi0sbmq9kfi8hzd0dpgmhbmcf8q93jy3x08dd8smayrhbbwmld";
|
2017-04-15 04:57:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
buildFlagsArray = ''
|
|
|
|
-ldflags=
|
|
|
|
-X=main.Version=${version}
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -m 444 -D ${src}/zsh/_ghq $bin/share/zsh/site-functions/_ghq
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Remote repository management made easy";
|
|
|
|
homepage = https://github.com/motemen/ghq;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ sigma ];
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
};
|
|
|
|
}
|