Files
2026-06-16 12:24:48 +00:00

46 lines
1013 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
gitMinimal,
}:
buildGoModule (finalAttrs: {
pname = "git-ls";
version = "7.1.2";
__structuredAttrs = true;
strictDeps = true;
src = fetchFromGitHub {
owner = "llimllib";
repo = "git-ls";
tag = "v${finalAttrs.version}";
hash = "sha256-g+LFQEud4nF+3hRaH8JcjQHx6Ol2LDRRP2HdQ2oLfls=";
};
vendorHash = "sha256-Bk6IBG+BrqY4FNVIlbSSSnqqAeL+8SJUtRXuIp4e8f8=";
ldflags = [ "-s" ];
nativeCheckInputs = [
gitMinimal
];
doInstallCheck = true;
nativeInstallCheckInputs = [ versionCheckHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "List files and git status in a repository";
homepage = "https://github.com/llimllib/git-ls";
changelog = "https://github.com/llimllib/git-ls/releases/tag/v${finalAttrs.version}";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ drupol ];
mainProgram = "git-ls";
};
})