3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/version-management/git-and-tools/lab/default.nix

32 lines
887 B
Nix

{ stdenv, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "lab";
version = "0.15.3";
src = fetchFromGitHub {
owner = "zaquestion";
repo = "lab";
rev = "v${version}";
sha256 = "00c0ljyvcqrzzcsdb3r37lxd4z2wvwp80ggs8jvp7y32p1b61bsg";
};
subPackages = [ "." ];
modSha256 = "1g72fnkibmdd9i20wgp5fjf556xp2xwan06dmn3f5rkmnicy3ccl";
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
'';
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;
maintainers = with maintainers; [ marsam dtzWill ];
platforms = platforms.all;
};
}