depot/third_party/nixpkgs/pkgs/development/tools/misc/pest-ide-tools/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

40 lines
908 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, nix-update-script
, pkg-config
, openssl
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "pest-ide-tools";
version = "0.3.11";
cargoHash = "sha256-ZD8UQbkk5JhkanBkzo+c86DZE4aD44ma5cN97aKx97U=";
src = fetchFromGitHub {
owner = "pest-parser";
repo = "pest-ide-tools";
rev = "v${version}";
sha256 = "sha256-12/FndzUbUlgcYcwMT1OfamSKgy2q+CvtGyx5YY4IFQ=";
};
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";
};
}