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

34 lines
886 B
Nix
Raw Normal View History

2018-12-15 14:37:35 +00:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
2018-12-16 23:50:34 +00:00
name = "lab-${version}";
version = "0.15.2";
2018-12-15 14:37:35 +00:00
goPackagePath = "github.com/zaquestion/lab";
subPackages = [ "." ];
2018-12-15 14:37:35 +00:00
src = fetchFromGitHub {
owner = "zaquestion";
repo = "lab";
rev = "v${version}";
sha256 = "1210cf6ss4ivm2jxq3k3c34vpra02pl91fpmvqbvw5sm53j7xfaf";
2018-12-15 14:37:35 +00:00
};
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
'';
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;
maintainers = [ maintainers.marsam ];
platforms = platforms.all;
};
}