Merge pull request #59487 from Ma27/install-weechat-manpages
weechat: install all outputs into the final store path
This commit is contained in:
commit
822634681e
@ -6,7 +6,8 @@ weechat:
|
|||||||
|
|
||||||
let
|
let
|
||||||
wrapper = {
|
wrapper = {
|
||||||
configure ? { availablePlugins, ... }: { plugins = builtins.attrValues availablePlugins; }
|
installManPages ? true
|
||||||
|
, configure ? { availablePlugins, ... }: { plugins = builtins.attrValues availablePlugins; }
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -65,14 +66,22 @@ let
|
|||||||
${lib.concatMapStringsSep "\n" (p: lib.optionalString (p ? extraEnv) p.extraEnv) plugins}
|
${lib.concatMapStringsSep "\n" (p: lib.optionalString (p ? extraEnv) p.extraEnv) plugins}
|
||||||
exec ${weechat}/bin/${bin} "$@" --run-command ${lib.escapeShellArg init}
|
exec ${weechat}/bin/${bin} "$@" --run-command ${lib.escapeShellArg init}
|
||||||
'') // {
|
'') // {
|
||||||
inherit (weechat) name;
|
inherit (weechat) name man;
|
||||||
unwrapped = weechat;
|
unwrapped = weechat;
|
||||||
|
outputs = [ "out" "man" ];
|
||||||
};
|
};
|
||||||
in buildEnv {
|
in buildEnv {
|
||||||
name = "weechat-bin-env-${weechat.version}";
|
name = "weechat-bin-env-${weechat.version}";
|
||||||
|
extraOutputsToInstall = lib.optionals installManPages [ "man" ];
|
||||||
paths = [
|
paths = [
|
||||||
(mkWeechat "weechat")
|
(mkWeechat "weechat")
|
||||||
(mkWeechat "weechat-headless")
|
(mkWeechat "weechat-headless")
|
||||||
|
(runCommand "weechat-out-except-bin" { } ''
|
||||||
|
mkdir $out
|
||||||
|
ln -sf ${weechat}/include $out/include
|
||||||
|
ln -sf ${weechat}/lib $out/lib
|
||||||
|
ln -sf ${weechat}/share $out/share
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
meta = builtins.removeAttrs weechat.meta [ "outputsToInstall" ];
|
meta = builtins.removeAttrs weechat.meta [ "outputsToInstall" ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user