Unverified Commit ea755e28 authored by Arne Keller's avatar Arne Keller Committed by GitHub
Browse files

sou: init at 0.2.0 (#395190)

parents c98f61ee 46a0f9f9
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  nix-update-script,
  versionCheckHook,
}:

buildGoModule (finalAttrs: {
  pname = "sou";
  version = "0.2.0";

  src = fetchFromGitHub {
    owner = "knqyf263";
    repo = "sou";
    tag = "v${finalAttrs.version}";
    hash = "sha256-uGYCmW60OvEfserujQMXC9r8S8W+EN+w9EXUGjk1vtw=";
  };

  vendorHash = "sha256-6kgiZx/g1PA7R50z7noG+ql+S9wSgTuVTkY5DIqeJHY=";

  ldflags = [
    "-s"
    "-w"
    "-X=main.version=${finalAttrs.version}"
  ];

  doInstallCheck = true;
  nativeInstallCheck = [ versionCheckHook ];

  # Some of the tests use localhost networking
  __darwinAllowLocalNetworking = true;

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Tool for exploring files in container image layers";
    homepage = "https://github.com/knqyf263/sou";
    changelog = "https://github.com/knqyf263/sou/releases/tag/v${finalAttrs.version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ nicolas-goudry ];
    mainProgram = "sou";
  };
})