copacetic: 0.10.0 -> 0.11.1

Changelog: https://github.com/project-copacetic/copacetic/releases/tag/v0.11.1

+25 -9
+25 -9
pkgs/by-name/co/copacetic/package.nix
··· 2 2 lib, 3 3 stdenv, 4 4 buildGoModule, 5 + docker, 5 6 fetchFromGitHub, 7 + installShellFiles, 6 8 nix-update-script, 7 - installShellFiles, 9 + oras, 8 10 versionCheckHook, 9 11 }: 12 + 10 13 buildGoModule rec { 11 14 pname = "copacetic"; 12 - version = "0.10.0"; 15 + version = "0.11.1"; 13 16 14 17 src = fetchFromGitHub { 15 18 owner = "project-copacetic"; 16 19 repo = "copacetic"; 17 20 tag = "v${version}"; 18 - hash = "sha256-aLFRhmxJ5Hj2vvdYCwALBeK0avPF/jDWUgQiSw0fFGg="; 21 + hash = "sha256-kgFT+IK6zCGoGK8L/lwXyiUXCWYG7ElziPs0Q1cq+fw="; 19 22 }; 20 23 21 - vendorHash = "sha256-+iS6nom52eofgcj/fZPVs2Eog9Un5ThSX+EBVmHTSlo="; 24 + vendorHash = "sha256-qe2VJHXSYtZJlMd5R2J1NXWcXb8+cbTiDBQeN20fbEE="; 22 25 23 26 nativeBuildInputs = [ installShellFiles ]; 24 27 28 + nativeCheckInputs = [ 29 + docker 30 + oras 31 + ]; 32 + 33 + nativeInstallCheckInputs = [ versionCheckHook ]; 34 + 25 35 env.CGO_ENABLED = "0"; 36 + 26 37 ldflags = [ 27 38 "-s" 28 39 "-w" 29 - "-X github.com/project-copacetic/copacetic/pkg/version.GitVersion=${version}" 30 - "-X main.version=${version}" 40 + "-X=github.com/project-copacetic/copacetic/pkg/version.GitVersion=${version}" 41 + "-X=main.version=${version}" 31 42 ]; 32 43 33 44 checkFlags = 34 45 let 35 - # Skip tests that require network access 46 + # Skip tests that require network access and container services 36 47 skippedTests = [ 37 48 "TestNewClient/custom_buildkit_addr" 38 49 "TestPatch" 39 50 "TestPlugins/docker.io" 51 + "TestPatchPartialArchitectures" 52 + "TestPushToRegistry" 53 + "TestMultiPlatformPluginPatch" 54 + "TestPodmanLoader_Load_Success" 40 55 ]; 41 56 in 42 57 [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; 43 58 44 - nativeInstallCheckInputs = [ versionCheckHook ]; 45 59 doInstallCheck = true; 60 + 46 61 versionCheckProgram = "${placeholder "out"}/bin/${meta.mainProgram}"; 47 62 48 63 postInstall = '' ··· 58 73 passthru.updateScript = nix-update-script { }; 59 74 60 75 meta = { 76 + description = "Tool for directly patching vulnerabilities in container images"; 61 77 homepage = "https://project-copacetic.github.io/copacetic/"; 62 - description = "Tool for directly patching vulnerabilities in container images"; 78 + changelog = "https://github.com/project-copacetic/copacetic/releases/tag/${src.tag}"; 63 79 license = lib.licenses.asl20; 64 80 mainProgram = "copa"; 65 81 maintainers = with lib.maintainers; [ bmanuel ];