2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, nickel
|
2023-08-04 22:07:22 +00:00
|
|
|
, stdenv
|
2023-05-24 13:37:59 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "nls";
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
inherit (nickel) src version nativeBuildInputs;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
cargoHash = "sha256-UGfc5cr6vl10aCVihOEEZktF8MzT56C9/wSvSQhCiVs=";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
cargoBuildFlags = [ "-p nickel-lang-lsp" ];
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
# Disable checks on Darwin because of issue described in https://github.com/tweag/nickel/pull/1454
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
meta = {
|
|
|
|
inherit (nickel.meta) homepage changelog license maintainers;
|
|
|
|
description = "A language server for the Nickel programming language";
|
|
|
|
longDescription = ''
|
|
|
|
The Nickel Language Server (NLS) is a language server for the Nickel
|
|
|
|
programming language. NLS offers error messages, type hints, and
|
|
|
|
auto-completion right in your favorite LSP-enabled editor.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|