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;
|
||||
in
|
||||
config.finalPackage.overrideAttrs (oa: {
|
||||
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 ''
|
||||
'';
|
||||
})
|
||||
pkgs.symlinkJoin {
|
||||
name = "nixvim";
|
||||
paths =
|
||||
[config.finalPackage]
|
||||
++ pkgs.lib.optional config.enableMan self.packages.${pkgs.system}.man-docs;
|
||||
meta.mainProgram = "nvim";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue