mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-12 18:24:35 +02:00
wrapper: Use symlink join to install man pages for standalone (#736)
Patching the derivation forces a rebuild of neovim, which is undesirable
This commit is contained in:
parent
a108c2e676
commit
b58b23c799
1 changed files with 7 additions and 10 deletions
|
@ -30,13 +30,10 @@ default_pkgs: {
|
||||||
|
|
||||||
config = handleAssertions eval.config;
|
config = handleAssertions eval.config;
|
||||||
in
|
in
|
||||||
config.finalPackage.overrideAttrs (oa: {
|
pkgs.symlinkJoin {
|
||||||
preInstall =
|
name = "nixvim";
|
||||||
if config.enableMan
|
paths =
|
||||||
then ''
|
[config.finalPackage]
|
||||||
mkdir -p $out/share/man/man5
|
++ pkgs.lib.optional config.enableMan self.packages.${pkgs.system}.man-docs;
|
||||||
cp ${self.packages.${pkgs.system}.man-docs}/share/man/man5/nixvim.5 $out/share/man/man5
|
meta.mainProgram = "nvim";
|
||||||
''
|
}
|
||||||
else ''
|
|
||||||
'';
|
|
||||||
})
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue