nixpkgs/pkgs/applications/version-management/git-and-tools/lab/default.nix
Will Dietz 3d8170098f lab: generate and install zsh completion
Env variables are set to dummy values
so `lab` doesn't get stuck trying to helpfully
interact with user for initial configuration.
2019-03-20 14:55:04 -05:00

34 lines
886 B
Nix

{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "lab-${version}";
version = "0.15.2";
goPackagePath = "github.com/zaquestion/lab";
subPackages = [ "." ];
src = fetchFromGitHub {
owner = "zaquestion";
repo = "lab";
rev = "v${version}";
sha256 = "1210cf6ss4ivm2jxq3k3c34vpra02pl91fpmvqbvw5sm53j7xfaf";
};
goDeps = ./deps.nix;
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 = [ maintainers.marsam ];
platforms = platforms.all;
};
}