podman: Don't symlink the $bin output
If we do it propagates and ends up in $PATH inside nix-shell
This commit is contained in:
parent
a677738a23
commit
b346e1d444
@ -27,8 +27,19 @@ let
|
|||||||
iptables
|
iptables
|
||||||
] ++ extraPackages);
|
] ++ extraPackages);
|
||||||
|
|
||||||
|
outputs = [
|
||||||
|
"out"
|
||||||
|
"man"
|
||||||
|
];
|
||||||
|
|
||||||
in runCommand podman.name {
|
in runCommand podman.name {
|
||||||
inherit (podman) name pname version meta outputs;
|
name = "${podman.pname}-wrapper-${podman.version}";
|
||||||
|
inherit (podman) pname version;
|
||||||
|
|
||||||
|
meta = builtins.removeAttrs podman.meta [ "outputsToInstall" ];
|
||||||
|
|
||||||
|
inherit outputs;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
makeWrapper
|
makeWrapper
|
||||||
];
|
];
|
||||||
@ -39,7 +50,7 @@ in runCommand podman.name {
|
|||||||
lib.concatMapStringsSep "\n"
|
lib.concatMapStringsSep "\n"
|
||||||
(o: "ln -s ${podman.${o}} ${placeholder o}")
|
(o: "ln -s ${podman.${o}} ${placeholder o}")
|
||||||
(builtins.filter (o: o != "out")
|
(builtins.filter (o: o != "out")
|
||||||
podman.outputs)}
|
outputs)}
|
||||||
|
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
ln -s ${podman-unwrapped}/share $out/share
|
ln -s ${podman-unwrapped}/share $out/share
|
||||||
|
Loading…
Reference in New Issue
Block a user