Unverified Commit 2eebcfc8 authored by Lucas Andreussi's avatar Lucas Andreussi
Browse files

fs-watcher-lsp: init at 0.1.0

This patch adds fs-watcher-lsp rust crate to nixpkgs.
This package can be used to add buffer auto reload in helix-editor.

The rust crate itself doesn't have any tests, but I added the passthru.tests, in case of this crate could have tests in the future.
parent 2d998e0c
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{
  lib,
  fetchCrate,
  openssl,
  pkg-config,
  rustPlatform,
  nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
  pname = "fs-watcher-lsp";
  version = "0.1.0";

  src = fetchCrate {
    version = finalAttrs.version;
    crateName = "fs_watcher_lsp";
    hash = "sha256-zahbi8RK8aDHcVOzIk5fCIh57+SjMGAVtUvtKhpMvF0=";
  };

  cargoHash = "sha256-w1i19IV/tjyl+W0NIjjbB0R9UpGrAUuK/yWbOZUKPUA=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs = [
    openssl
  ];

  buildNoDefaultFeatures = false;
  doCheck = true;

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Little file system watcher LSP to reload your editor";
    changelog = "https://codeberg.org/Zentropivity/fs_watcher_lsp/releases/tag/v${finalAttrs.version}";
    license = with lib.licenses; [
      mit
      asl20
    ];
    maintainers = [ ];
    mainProgram = "fs_watcher_lsp";
  };
})