nix-community.nixvim/helpers/default.nix
traxys 33cffcb0fd
plugins/lsp: Extract rust-analyzer options from the source directly (#562)
This directly reads the package.json file in pkgs.rust-analyzer.src in
order to generate the list of options for rust-analyzer.

This avoids the need for a generator script, and makes sure that it is
always in sync.
2023-08-28 17:28:12 +02:00

16 lines
385 B
Nix

pkgs: rec {
efmls-configs-tools = pkgs.callPackage ./efmls-configs {};
autogenerated-configs = pkgs.callPackage ({stdenv}:
stdenv.mkDerivation {
pname = "autogenerated-configs";
version = "master";
dontUnpack = true;
dontBuild = true;
installPhase = ''
mkdir -p $out
cp ${efmls-configs-tools}/share/* $out
'';
}) {};
}