2022-05-15 16:49:18 +02:00
|
|
|
{ lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2024-01-28 05:57:15 +01:00
|
|
|
, stdenv
|
2022-05-15 16:49:18 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "beancount-language-server";
|
2024-01-23 05:11:08 +01:00
|
|
|
version = "1.3.4";
|
2022-05-15 16:49:18 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "polarmutex";
|
|
|
|
repo = "beancount-language-server";
|
|
|
|
rev = "v${version}";
|
2024-01-23 05:11:08 +01:00
|
|
|
hash = "sha256-C44Z8JaEZvwgocaGjWT3rUAgIBtCRo0xZappMsydR7g=";
|
2022-05-15 16:49:18 +02:00
|
|
|
};
|
|
|
|
|
2024-01-23 05:11:08 +01:00
|
|
|
cargoHash = "sha256-NMSNCURSO1iIWHH27FI5Y0q7+Ghds8VSxRGBOp+fH6A=";
|
2022-05-15 16:49:18 +02:00
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
postInstallCheck = ''
|
|
|
|
$out/bin/beancount-language-server --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Language Server Protocol (LSP) for beancount files";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "beancount-language-server";
|
2022-05-15 16:49:18 +02:00
|
|
|
homepage = "https://github.com/polarmutex/beancount-language-server";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ polarmutex ];
|
|
|
|
};
|
|
|
|
}
|