nixpkgs/pkgs/applications/version-management/gitls/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
733 B
Nix
Raw Normal View History

2022-06-18 12:33:15 +00:00
{ lib
, buildGoModule
, gitls
, fetchFromGitHub
, testers
}:
buildGoModule rec {
pname = "gitls";
2022-09-17 13:32:38 +00:00
version = "1.0.4";
2022-06-18 12:33:15 +00:00
src = fetchFromGitHub {
owner = "hahwul";
repo = pname;
rev = "v${version}";
2022-09-17 13:32:38 +00:00
hash = "sha256-kLkH/nNidd1QNPKvo7fxZwMhTgd4AVB8Ofw0Wo0z6c0=";
2022-06-18 12:33:15 +00:00
};
2022-09-17 13:32:38 +00:00
vendorSha256 = null;
2022-06-18 12:33:15 +00:00
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 ];
};
}