glab: expose version, enable tests

This commit is contained in:
Martin Weinelt 2021-08-11 13:40:24 +02:00
parent 2e4b2ad74b
commit 0f9339ef32
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -14,8 +14,14 @@ buildGoModule rec {
vendorSha256 = "sha256-9+WBKc8PI0v6bnkC+78Ygv/eocQ3D7+xBb8lcv16QTE=";
runVend = true;
# Tests are trying to access /homeless-shelter
doCheck = false;
ldflags = [
"-X main.version=${version}"
];
preCheck = ''
# failed to read configuration: mkdir /homeless-shelter: permission denied
export HOME=$TMPDIR
'';
subPackages = [ "cmd/glab" ];