depot/third_party/nixpkgs/pkgs/development/tools/misc/pest-ide-tools/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

40 lines
910 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, nix-update-script
, pkg-config
, openssl
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "pest-ide-tools";
version = "0.3.6";
cargoSha256 = "sha256-uFcEE5Hlb0fhOH0birqeH+hOuAyZVjQOYFhoMdR8czM=";
src = fetchFromGitHub {
owner = "pest-parser";
repo = "pest-ide-tools";
rev = "v${version}";
sha256 = "sha256-SymtMdj7QVOEiSeTjmVidejFeGK8swnM6nfT7u18URs=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
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";
};
}