13 rustPlatform.buildRustPackage rec {
17 src = fetchFromGitHub {
21 hash = "sha256-ROzdOanfHNPwHXA0SzU2fpuBonbDbgDqH+ZgOjwK/tg=";
22 fetchSubmodules = true;
27 name = "fix-rust-1.71-lints.patch";
28 url = "https://github.com/boa-dev/boa/commit/93d05bda6864aa6ee67682d84bd4fc2108093ef5.patch";
29 hash = "sha256-hMp4/UBN5moGBSqf8BJV2nBwgV3cry9uC2fJmdT5hkQ=";
33 cargoHash = "sha256-UIUXayJwTrWbLm1UKnIXy1Df8a7ZoBzdNm/uZ1+H+SQ=";
35 cargoBuildFlags = [ "--package" "boa_cli" ];
37 nativeBuildInputs = [ pkg-config ];
40 [ bzip2 openssl zstd ]
41 ++ lib.optionals stdenv.hostPlatform.isDarwin [
42 darwin.apple_sdk.frameworks.CoreFoundation
43 darwin.apple_sdk.frameworks.Security
46 env = { ZSTD_SYS_USE_PKG_CONFIG = true; };
49 description = "Embeddable and experimental Javascript engine written in Rust";
51 homepage = "https://github.com/boa-dev/boa";
52 changelog = "https://github.com/boa-dev/boa/blob/${src.rev}/CHANGELOG.md";
53 license = with licenses; [ mit /* or */ unlicense ];
54 maintainers = with maintainers; [ dit7ya ];