elsmith 0.1.1

An Emacs Lisp language server with Lean-verified protocol and editing rules
Documentation
{
  description = "Elsmith: an Emacs Lisp language server";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
    flake-parts.url = "github:hercules-ci/flake-parts";
    treefmt-nix.url = "github:numtide/treefmt-nix";
    leanfran.url = "github:conao3/lean-leanfran/38b96a4350d38eb51ec69a645f816be766859970";
    leanfran.inputs.nixpkgs.follows = "nixpkgs";
    touchstone.url = "github:conao3/rust-lsp-touchstone/b47561b63e0826ef1fb095f0a3bf8d619eb6d637";
    touchstone.inputs.nixpkgs.follows = "nixpkgs";
    vow.url = "github:conao3/vow.el/329d89a83215a9c8ec37930b48366ad8dc551ef6";
    vow.flake = false;
    vowls.url = "github:conao3/vowls.el/a1727c661ba1362c6bdcf86e2f157acf820c184e";
    vowls.flake = false;
  };

  outputs =
    inputs:
    inputs.flake-parts.lib.mkFlake { inherit inputs; } {
      imports = [ inputs.treefmt-nix.flakeModule ];
      systems = [
        "x86_64-linux"
        "aarch64-darwin"
      ];
      perSystem =
        { pkgs, system, ... }:
        {
          packages.default = pkgs.rustPlatform.buildRustPackage {
            pname = "elsmith";
            version = (pkgs.lib.importTOML ./Cargo.toml).package.version;
            src = pkgs.lib.cleanSource ./.;
            cargoLock.lockFile = ./Cargo.lock;
            meta = {
              mainProgram = "elsmith";
              license = pkgs.lib.licenses.asl20;
              platforms = pkgs.lib.platforms.unix;
            };
          };
          devShells.default = pkgs.mkShell {
            packages = with pkgs; [
              cargo
              clippy
              emacs-nox
              gcc
              gnumake
              neovim
              lean4
              python3
              rust-analyzer
              rustc
              rustfmt
              inputs.leanfran.packages.${system}.leanfran
              inputs.touchstone.packages.${system}.default
            ];
            LEANFRAN_CLI = "${inputs.leanfran.packages.${system}.leanfran}/bin/leanfran";
            LEAN_SYSROOT = "${pkgs.lean4}";
            ELSMITH_TEST_VOW = inputs.vow.outPath;
            ELSMITH_TEST_VOWLS = inputs.vowls.outPath;
          };
          treefmt.programs.nixfmt.enable = true;
          treefmt.programs.rustfmt.enable = true;
        };
    };
}