23 src = fetchFromGitHub {
27 hash = "sha256-IoYeCGiGOjz+8HPzYPXUWsHADtrWHvJm9YhKeMJJf0k=";
30 outputs = [ "out" "man" ];
36 nativeBuildInputs = [ pkg-config go-md2man installShellFiles makeWrapper ];
38 buildInputs = [ gpgme ]
39 ++ lib.optionals stdenv.hostPlatform.isLinux [ lvm2 btrfs-progs ];
44 make bin/skopeo completions docs
50 PREFIX=${placeholder "out"} make install-binary install-completions install-docs
51 install ${passthru.policy}/default-policy.json -Dt $out/etc/containers
52 '' + lib.optionalString stdenv.hostPlatform.isLinux ''
53 wrapProgram $out/bin/skopeo \
54 --prefix PATH : ${lib.makeBinPath [ fuse-overlayfs ]}
60 policy = runCommand "policy" { } ''
61 install ${src}/default-policy.json -Dt $out
64 version = testers.testVersion {
67 inherit (dockerTools.examples) testNixFromDockerHub;
72 changelog = "https://github.com/containers/skopeo/releases/tag/${src.rev}";
73 description = "Command line utility for various operations on container images and image repositories";
74 mainProgram = "skopeo";
75 homepage = "https://github.com/containers/skopeo";
76 maintainers = with maintainers; [ lewo developer-guy ] ++ teams.podman.members;
77 license = licenses.asl20;