diff --git a/pkgs/by-name/yc/ycmd/package.nix b/pkgs/by-name/yc/ycmd/package.nix index 590055955881..92262a993b27 100644 --- a/pkgs/by-name/yc/ycmd/package.nix +++ b/pkgs/by-name/yc/ycmd/package.nix @@ -6,8 +6,8 @@ , python , withGodef ? true , godef -, withGotools ? true -, gotools +, withGopls ? true +, gopls , withRustAnalyzer ? true , rust-analyzer , withTypescript ? true @@ -80,10 +80,10 @@ stdenv.mkDerivation { TARGET=$out/lib/ycmd/third_party/godef mkdir -p $TARGET ln -sf ${godef}/bin/godef $TARGET - '' + lib.optionalString withGotools '' - TARGET=$out/lib/ycmd/third_party/go/src/golang.org/x/tools/cmd/gopls + '' + lib.optionalString withGopls '' + TARGET=$out/lib/ycmd/third_party/go/bin mkdir -p $TARGET - ln -sf ${gotools}/bin/gopls $TARGET + ln -sf ${gopls}/bin/gopls $TARGET '' + lib.optionalString withRustAnalyzer '' TARGET=$out/lib/ycmd/third_party/rust-analyzer mkdir -p $TARGET