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:
parent
b346e1d444
commit
7c77e6d988
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue