depot/third_party/nixpkgs/pkgs/applications/version-management/gitls/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

35 lines
758 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=";
};
vendorHash = 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 ];
mainProgram = "gitls";
};
}