diff options
| author | Mel <einebeere@gmail.com> | 2024-11-16 04:22:20 +0100 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-11-16 04:22:20 +0100 |
| commit | 7e6bf85c03fa009a3677e008c0f2a563a28f7983 (patch) | |
| tree | 75e9de4308547985feec107c591374edde0b0867 /pkgs/youcompleteme.nix | |
| parent | b620dbdf8747e888c86e25237fbd736e7f443069 (diff) | |
| download | network-7e6bf85c03fa009a3677e008c0f2a563a28f7983.tar.zst network-7e6bf85c03fa009a3677e008c0f2a563a28f7983.zip | |
Bring in advanced Vim configuration from desktop
Signed-off-by: Mel <einebeere@gmail.com>
Diffstat (limited to 'pkgs/youcompleteme.nix')
| -rw-r--r-- | pkgs/youcompleteme.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/youcompleteme.nix b/pkgs/youcompleteme.nix new file mode 100644 index 0000000..190e4b5 --- /dev/null +++ b/pkgs/youcompleteme.nix @@ -0,0 +1,32 @@ +{ + ycmd, + vimPlugins, + gopls, + ... +}: + +let + ycmd-go = ycmd.overrideAttrs ( + final: prev: { + pname = prev.pname + "-go"; + + installPhase = + prev.installPhase + + '' + TARGET=$out/lib/ycmd/third_party/go/bin + mkdir -p $TARGET + ln -sf ${gopls}/bin/gopls $TARGET + ''; + } + ); +in +vimPlugins.YouCompleteMe.overrideAttrs ( + final: prev: { + buildPhase = + prev.buildPhase + + '' + rm third_party/ycmd + ln -s ${ycmd-go}/lib/ycmd third_party + ''; + } +) |
