mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
skopeo: add wrapper
wrap fuse-overlayfs for storage compatibility with the podman wrapper
This commit is contained in:
parent
90c0191735
commit
5a3ba0e295
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user