depot/third_party/nixpkgs/pkgs/applications/version-management/git-and-tools/gitls/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

34 lines
733 B
Nix

{ lib
, buildGoModule
, gitls
, fetchFromGitHub
, testers
}:
buildGoModule rec {
pname = "gitls";
version = "1.0.4";
src = fetchFromGitHub {
owner = "hahwul";
repo = pname;
rev = "v${version}";
hash = "sha256-kLkH/nNidd1QNPKvo7fxZwMhTgd4AVB8Ofw0Wo0z6c0=";
};
vendorSha256 = null;
passthru.tests.version = testers.testVersion {
package = gitls;
command = "gitls -version";
version = "v${version}";
};
meta = with lib; {
description = "Tools to enumerate git repository URL";
homepage = "https://github.com/hahwul/gitls";
changelog = "https://github.com/hahwul/gitls/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}