Merge pull request #216712 from qowoz/skopeo

skopeo: 1.11.0 -> 1.11.1
This commit is contained in:
lewo 2023-02-17 08:10:15 +01:00 committed by GitHub
commit 6bb50c8c83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,17 +12,19 @@
, fuse-overlayfs
, dockerTools
, runCommand
, testers
, skopeo
}:
buildGoModule rec {
pname = "skopeo";
version = "1.11.0";
version = "1.11.1";
src = fetchFromGitHub {
rev = "v${version}";
owner = "containers";
repo = "skopeo";
hash = "sha256-P556Is03BeC0Tf+kNv+Luy0KASgTXsyZ/MrPaPFUHE8=";
hash = "sha256-wTOcluPSguF6ZnKHlLelM5R2dIF9nd66qu7u/48uNyU=";
};
outputs = [ "out" "man" ];
@ -45,8 +47,7 @@ buildGoModule rec {
installPhase = ''
runHook preInstall
PREFIX=$out make install-binary install-completions
PREFIX=$man make install-docs
PREFIX=${placeholder "out"} make install-binary install-completions install-docs
install ${passthru.policy}/default-policy.json -Dt $out/etc/containers
'' + lib.optionalString stdenv.isLinux ''
wrapProgram $out/bin/skopeo \
@ -60,11 +61,15 @@ buildGoModule rec {
install ${src}/default-policy.json -Dt $out
'';
tests = {
version = testers.testVersion {
package = skopeo;
};
inherit (dockerTools.examples) testNixFromDockerHub;
};
};
meta = with lib; {
changelog = "https://github.com/containers/skopeo/releases/tag/${src.rev}";
description = "A command line utility for various operations on container images and image repositories";
homepage = "https://github.com/containers/skopeo";
maintainers = with maintainers; [ lewo ] ++ teams.podman.members;