Merge pull request #87659 from zowoq/skopeo

skopeo: add wrapper
This commit is contained in:
lewo 2020-05-13 10:01:31 +02:00 committed by GitHub
commit a29c7741a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View file

@ -10,6 +10,8 @@
, libselinux
, go-md2man
, installShellFiles
, makeWrapper
, fuse-overlayfs
}:
let
@ -38,7 +40,7 @@ buildGoPackage {
excludedPackages = [ "integration" ];
nativeBuildInputs = [ pkg-config go-md2man installShellFiles ];
nativeBuildInputs = [ pkg-config go-md2man installShellFiles makeWrapper ];
buildInputs = [ gpgme ]
++ stdenv.lib.optionals stdenv.isLinux [ libgpgerror lvm2 btrfs-progs libselinux ];
@ -56,6 +58,11 @@ buildGoPackage {
popd
'';
postInstall = stdenv.lib.optionals stdenv.isLinux ''
wrapProgram $out/bin/skopeo \
--prefix PATH : ${stdenv.lib.makeBinPath [ fuse-overlayfs ]}
'';
meta = with stdenv.lib; {
description = "A command line utility for various operations on container images and image repositories";
homepage = "https://github.com/containers/skopeo";

View file

@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
longDescription = "An implementation of overlay+shiftfs in FUSE for rootless containers.";
license = licenses.gpl3;
maintainers = with maintainers; [ ma9e ] ++ teams.podman.members;
platforms = platforms.unix;
platforms = platforms.linux;
inherit (src.meta) homepage;
};
}