lol

skopeo: install default policy to separate passthru package

zowoq 86d55aa6 4a8663e6

+9 -2
+9 -2
pkgs/development/tools/skopeo/default.nix
··· 11 11 , makeWrapper 12 12 , fuse-overlayfs 13 13 , dockerTools 14 + , runCommand 14 15 }: 15 16 16 17 buildGoModule rec { ··· 46 47 runHook preInstall 47 48 PREFIX=$out make install-binary install-completions 48 49 PREFIX=$man make install-docs 50 + install ${passthru.policy}/default-policy.json -Dt $out/etc/containers 49 51 '' + lib.optionalString stdenv.isLinux '' 50 52 wrapProgram $out/bin/skopeo \ 51 53 --prefix PATH : ${lib.makeBinPath [ fuse-overlayfs ]} ··· 53 55 runHook postInstall 54 56 ''; 55 57 56 - passthru.tests = { 57 - inherit (dockerTools.examples) testNixFromDockerHub; 58 + passthru = { 59 + policy = runCommand "policy" { } '' 60 + install ${src}/default-policy.json -Dt $out 61 + ''; 62 + tests = { 63 + inherit (dockerTools.examples) testNixFromDockerHub; 64 + }; 58 65 }; 59 66 60 67 meta = with lib; {