Unverified Commit 8ed5b172 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

git-ls: init at 5.10.0 (#512764)

parents 55152dfa e46692f7
Loading
Loading
Loading
Loading
+45 −0
Original line number Diff line number Diff line
{
  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";
  };
})