87f9c27ba9
GitOrigin-RevId: fe2ecaf706a5907b5e54d979fbde4924d84b65fc
30 lines
779 B
Nix
30 lines
779 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "beancount-language-server";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "polarmutex";
|
|
repo = "beancount-language-server";
|
|
rev = "v${version}";
|
|
hash = "sha256-9IkbEOG6xcmpowsLj/RHnMFGQxh02JMQsTVli4hvs/M=";
|
|
};
|
|
|
|
cargoHash = "sha256-qhN2//hhCaKpm0HAiUL/CfdrtvAXgR34vXBECB8UDxE=";
|
|
|
|
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 ];
|
|
};
|
|
}
|