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

39 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, makeWrapper, xdg_utils, installShellFiles, git }:
2018-12-15 14:37:35 +00:00
buildGoModule rec {
pname = "lab";
version = "0.19.0";
2018-12-15 14:37:35 +00:00
src = fetchFromGitHub {
owner = "zaquestion";
repo = "lab";
rev = "v${version}";
sha256 = "1l6xsikd1113qd4y0mvjsl64gbi4327m9v4d593f27fxink39j8s";
2018-12-15 14:37:35 +00:00
};
subPackages = [ "." ];
vendorSha256 = "07zl5xhzgrgr5skba6cds5nal58pllf10gak0ap62j1k9gk2ych2";
2019-12-13 05:00:00 +00:00
doCheck = false;
nativeBuildInputs = [ makeWrapper installShellFiles ];
2019-12-13 05:00:00 +00:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version}" ];
2018-12-15 14:37:35 +00:00
postInstall = ''
wrapProgram $out/bin/lab --prefix PATH ":" "${lib.makeBinPath [ git xdg_utils ]}";
for shell in bash fish zsh; do
$out/bin/lab completion $shell > lab.$shell
installShellCompletion lab.$shell
done
'';
meta = with lib; {
2018-12-15 14:37:35 +00:00
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
};
}