sou: init at 0.2.0 (#395190)

This commit is contained in:
Arne Keller
2025-04-10 09:43:27 +02:00
committed by GitHub
+44
View File
@@ -0,0 +1,44 @@
{
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";
};
})