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";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.3.11";
|
|
|
|
cargoSha256 = "sha256-ZD8UQbkk5JhkanBkzo+c86DZE4aD44ma5cN97aKx97U=";
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pest-parser";
|
|
|
|
repo = "pest-ide-tools";
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
sha256 = "sha256-12/FndzUbUlgcYcwMT1OfamSKgy2q+CvtGyx5YY4IFQ=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "IDE support for Pest, via the LSP";
|
2023-08-22 20:05:09 +00:00
|
|
|
homepage = "https://pest.rs";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = with maintainers; [ nickhu ];
|
|
|
|
mainProgram = "pest-language-server";
|
|
|
|
};
|
|
|
|
}
|