networkmanager-split: ship manpages
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
{ deepLinkIntoOwnPackage
|
||||
, modemmanager
|
||||
{
|
||||
deepLinkIntoOwnPackage,
|
||||
modemmanager,
|
||||
}:
|
||||
(deepLinkIntoOwnPackage modemmanager).overrideAttrs (base: {
|
||||
(deepLinkIntoOwnPackage modemmanager {}).overrideAttrs (base: {
|
||||
outputs = [ "out" "daemon" "mmcli" ];
|
||||
postFixup = ''
|
||||
moveToOutput "" "$daemon"
|
||||
|
@@ -30,14 +30,22 @@ let
|
||||
];
|
||||
});
|
||||
in
|
||||
(deepLinkIntoOwnPackage networkmanager').overrideAttrs (base: {
|
||||
(deepLinkIntoOwnPackage networkmanager' { outputs = [ "doc" "man" "out" ]; }).overrideAttrs (base: {
|
||||
outputs = [ "out" "daemon" "nmcli" ];
|
||||
|
||||
postFixup = ''
|
||||
# assume all outputs (until mentioned later) are associated with the daemon:
|
||||
moveToOutput "" "$daemon"
|
||||
for f in bin/{nmcli,nmtui,nmtui-connect,nmtui-edit,nmtui-hostname} share/bash-completion/completions/nmcli; do
|
||||
|
||||
# move select outputs to `nmcli`:
|
||||
for f in \
|
||||
bin/{nmcli,nmtui,nmtui-connect,nmtui-edit,nmtui-hostname} \
|
||||
share/bash-completion/completions/nmcli \
|
||||
share/man/man1/{nmcli,nmtui,nmtui-connect,nmtui-edit,nmtui-hostname}.1.gz \
|
||||
; do
|
||||
moveToOutput "$f" "$nmcli"
|
||||
done
|
||||
|
||||
# ensure non-empty default output so the build doesn't fail
|
||||
mkdir "$out"
|
||||
'';
|
||||
|
@@ -80,9 +80,9 @@
|
||||
linkIntoOwnPackage pkg paths'
|
||||
;
|
||||
|
||||
deepLinkIntoOwnPackage = pkg: symlinkJoin {
|
||||
deepLinkIntoOwnPackage = pkg: { outputs ? [ "out" ] }: symlinkJoin {
|
||||
name = pkg.pname or pkg.name;
|
||||
paths = [ pkg ];
|
||||
paths = builtins.map (output: pkg."${output}") outputs;
|
||||
meta = pkg.meta or {};
|
||||
postBuild = ''
|
||||
runHook postBuild
|
||||
@@ -94,7 +94,7 @@
|
||||
# given some package, create a new package which symlinks every file of the original
|
||||
# *except* for its dbus files.
|
||||
# in addition, edit its .desktop files to clarify that it can't be "dbus activated".
|
||||
rmDbusServices = pkg: rmDbusServicesInPlace (deepLinkIntoOwnPackage pkg);
|
||||
rmDbusServices = pkg: rmDbusServicesInPlace (deepLinkIntoOwnPackage pkg {});
|
||||
|
||||
# like rmDbusServices, but do it by patching the derivation instead of wrapping it.
|
||||
# unlike `rmDbusServices`, this won't work on *all* derivation types (e.g. runCommand), so you should
|
||||
|
Reference in New Issue
Block a user