2023-08-22 20:05:09 +00:00
|
|
|
{ lib
|
2024-01-02 11:29:13 +00:00
|
|
|
, stdenv
|
2023-08-22 20:05:09 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, nix-update-script
|
|
|
|
, pkg-config
|
|
|
|
, openssl
|
2024-01-02 11:29:13 +00:00
|
|
|
, darwin
|
2023-08-22 20:05:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "pest-ide-tools";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.3.6";
|
|
|
|
cargoSha256 = "sha256-uFcEE5Hlb0fhOH0birqeH+hOuAyZVjQOYFhoMdR8czM=";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pest-parser";
|
|
|
|
repo = "pest-ide-tools";
|
|
|
|
rev = "v${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
sha256 = "sha256-SymtMdj7QVOEiSeTjmVidejFeGK8swnM6nfT7u18URs=";
|
2023-08-22 20:05:09 +00:00
|
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2024-01-02 11:29:13 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
darwin.apple_sdk.frameworks.Security
|
|
|
|
];
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "IDE support for Pest, via the LSP.";
|
|
|
|
homepage = "https://pest.rs";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
|
|
|
mainProgram = "pest-language-server";
|
|
|
|
};
|
|
|
|
}
|