wrappers/standalone: fix

This commit is contained in:
Gaetan Lepage 2023-11-19 14:22:18 +01:00 committed by Gaétan Lepage
parent 3d19545644
commit a05b2a9cbf

View file

@ -31,7 +31,12 @@ default_pkgs: {
config = handleAssertions eval.config;
in
config.finalPackage.overrideAttrs (oa: {
paths =
oa.paths
++ (pkgs.lib.optional config.enableMan self.packages.${pkgs.system}.man-docs);
preInstall =
if config.enableMan
then ''
mkdir -p $out/share/man/man5
cp ${self.packages.${pkgs.system}.man-docs}/share/man/man5/nixvim.5 $out/share/man/man5
''
else ''
'';
})