git-ls: init at 5.10.0
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
gitMinimal,
|
||||
}:
|
||||
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "git-ls";
|
||||
version = "5.10.0";
|
||||
|
||||
__structuredAttrs = true;
|
||||
strictDeps = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "llimllib";
|
||||
repo = "git-ls";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-ziG1TP+sg5v/JEJ+1J4reNHt6fpvIAfSz+esr2jucz8=";
|
||||
};
|
||||
|
||||
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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user