diff options
author | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-05-12 03:58:46 +1000 |
---|---|---|
committer | zowoq <59103226+zowoq@users.noreply.github.com> | 2020-05-12 22:11:22 +1000 |
commit | 5a3ba0e2952adeb5a0cad5eadf302ed20c9248d7 (patch) | |
tree | 9fa309aaeb9e5ebef850c6558be173105f4b0756 /pkgs/development/tools/skopeo | |
parent | 90c0191735bc729acd36e4ba72ef3ffd88f679c6 (diff) | |
download | nixpkgs-5a3ba0e2952adeb5a0cad5eadf302ed20c9248d7.tar nixpkgs-5a3ba0e2952adeb5a0cad5eadf302ed20c9248d7.tar.gz nixpkgs-5a3ba0e2952adeb5a0cad5eadf302ed20c9248d7.tar.bz2 nixpkgs-5a3ba0e2952adeb5a0cad5eadf302ed20c9248d7.tar.lz nixpkgs-5a3ba0e2952adeb5a0cad5eadf302ed20c9248d7.tar.xz nixpkgs-5a3ba0e2952adeb5a0cad5eadf302ed20c9248d7.tar.zst nixpkgs-5a3ba0e2952adeb5a0cad5eadf302ed20c9248d7.zip |
skopeo: add wrapper
wrap fuse-overlayfs for storage compatibility with the podman wrapper
Diffstat (limited to 'pkgs/development/tools/skopeo')
-rw-r--r-- | pkgs/development/tools/skopeo/default.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/development/tools/skopeo/default.nix b/pkgs/development/tools/skopeo/default.nix index f7e1478bbec..1d4afc0a4ec 100644 --- a/pkgs/development/tools/skopeo/default.nix +++ b/pkgs/development/tools/skopeo/default.nix @@ -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"; |