1{ lib
2, buildGoModule
3, gitls
4, fetchFromGitHub
5, testers
6}:
7
8buildGoModule rec {
9 pname = "gitls";
10 version = "1.0.4";
11
12 src = fetchFromGitHub {
13 owner = "hahwul";
14 repo = pname;
15 rev = "v${version}";
16 hash = "sha256-kLkH/nNidd1QNPKvo7fxZwMhTgd4AVB8Ofw0Wo0z6c0=";
17 };
18
19 vendorHash = null;
20
21 passthru.tests.version = testers.testVersion {
22 package = gitls;
23 command = "gitls -version";
24 version = "v${version}";
25 };
26
27 meta = with lib; {
28 description = "Tools to enumerate git repository URL";
29 homepage = "https://github.com/hahwul/gitls";
30 changelog = "https://github.com/hahwul/gitls/releases/tag/v${version}";
31 license = licenses.mit;
32 maintainers = with maintainers; [ fab ];
33 };
34}