3
0
Fork 0
forked from mirrors/nixpkgs
zowoq 2023-02-17 08:54:04 +10:00
parent f6f6796bc9
commit 6285356012

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;