2019-03-18 06:13:52 +00:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub }:
|
2018-12-15 14:37:35 +00:00
|
|
|
|
2019-03-18 06:13:52 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "lab";
|
2019-03-22 01:13:33 +00:00
|
|
|
version = "0.15.3";
|
2018-12-15 14:37:35 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zaquestion";
|
|
|
|
repo = "lab";
|
|
|
|
rev = "v${version}";
|
2019-03-22 01:13:33 +00:00
|
|
|
sha256 = "00c0ljyvcqrzzcsdb3r37lxd4z2wvwp80ggs8jvp7y32p1b61bsg";
|
2018-12-15 14:37:35 +00:00
|
|
|
};
|
|
|
|
|
2019-03-18 06:13:52 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2019-03-22 03:40:07 +00:00
|
|
|
modSha256 = "0bw47dd1b46ywsian2b957a4ipm77ncidipzri9ra39paqlv7abb";
|
2018-12-15 14:37:35 +00:00
|
|
|
|
2019-03-17 21:10:35 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/zsh/site-functions
|
|
|
|
LAB_CORE_HOST=a LAB_CORE_USER=b LAB_CORE_TOKEN=c \
|
|
|
|
$out/bin/lab completion zsh > $out/share/zsh/site-functions/_lab
|
|
|
|
'';
|
|
|
|
|
2018-12-15 14:37:35 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Lab wraps Git or Hub, making it simple to clone, fork, and interact with repositories on GitLab";
|
|
|
|
homepage = https://zaquestion.github.io/lab;
|
|
|
|
license = licenses.unlicense;
|
2019-03-18 06:13:52 +00:00
|
|
|
maintainers = with maintainers; [ marsam dtzWill ];
|
2018-12-15 14:37:35 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|