1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 22:50:49 +00:00

podman: Link directly to podman.man instead of maping over outputs

This seems brittle and fails on Hydra / OfBorg but not locally.
This commit is contained in:
adisbladis 2020-05-05 00:28:00 +01:00
parent b346e1d444
commit 7c77e6d988
No known key found for this signature in database
GPG key ID: 110BFAD44C6249B7

View file

@ -27,30 +27,23 @@ let
iptables
] ++ extraPackages);
outputs = [
"out"
"man"
];
in runCommand podman.name {
name = "${podman.pname}-wrapper-${podman.version}";
inherit (podman) pname version;
meta = builtins.removeAttrs podman.meta [ "outputsToInstall" ];
inherit outputs;
outputs = [
"out"
"man"
];
nativeBuildInputs = [
makeWrapper
];
} ''
# Symlink everything but $out from podman-unwrapped
${
lib.concatMapStringsSep "\n"
(o: "ln -s ${podman.${o}} ${placeholder o}")
(builtins.filter (o: o != "out")
outputs)}
ln -s ${podman.man} $man
mkdir -p $out/bin
ln -s ${podman-unwrapped}/share $out/share