nixpkgs/pkgs/applications/version-management/git-and-tools/lab/default.nix

33 lines
1,007 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub }:
2018-12-15 14:37:35 +00:00
buildGoModule rec {
pname = "lab";
version = "0.17.0";
2018-12-15 14:37:35 +00:00
src = fetchFromGitHub {
owner = "zaquestion";
repo = "lab";
rev = "v${version}";
sha256 = "1p8q21k8p1zw1g4fn6f7b80r3wziywbm1av1vg7hc8w1rfqj51wp";
2018-12-15 14:37:35 +00:00
};
subPackages = [ "." ];
modSha256 = "1cwj7p03j2bglj379h4hb25kxayx07msz0mnqwwbjv5i3zkc6kkg";
2018-12-15 14:37:35 +00:00
postInstall = ''
mkdir -p "$out/share/bash-completion/completions" "$out/share/zsh/site-functions"
export LAB_CORE_HOST=a LAB_CORE_USER=b LAB_CORE_TOKEN=c
$out/bin/lab completion bash > $out/share/bash-completion/completions/lab
$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.cc0;
maintainers = with maintainers; [ marsam dtzWill ];
2018-12-15 14:37:35 +00:00
platforms = platforms.all;
};
}