eaf6957cd3
GitOrigin-RevId: 4bb072f0a8b267613c127684e099a70e1f6ff106
31 lines
782 B
Nix
31 lines
782 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "beancount-language-server";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "polarmutex";
|
|
repo = "beancount-language-server";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-X3Mun5ZooipUkkcgEOC7ou0d1upABjmMs9MegPBXPyQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-OI/MGcFOJHEZJfqCz/+CxHB3VSn6joS7L7FqRYrS4us=";
|
|
|
|
doInstallCheck = true;
|
|
postInstallCheck = ''
|
|
$out/bin/beancount-language-server --help > /dev/null
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A Language Server Protocol (LSP) for beancount files";
|
|
homepage = "https://github.com/polarmutex/beancount-language-server";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ polarmutex ];
|
|
};
|
|
}
|
|
|