Merge pull request #247366 from tjni/boa

boa: fix compilation with rust 1.71
This commit is contained in:
Weijia Wang 2023-08-05 22:57:01 +02:00 committed by GitHub
commit 284b259bd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
{ lib
, rustPlatform
, fetchFromGitHub
, fetchpatch
, pkg-config
, bzip2
, openssl
@ -21,6 +22,14 @@ rustPlatform.buildRustPackage rec {
fetchSubmodules = true;
};
patches = [
(fetchpatch {
name = "fix-rust-1.71-lints.patch";
url = "https://github.com/boa-dev/boa/commit/93d05bda6864aa6ee67682d84bd4fc2108093ef5.patch";
hash = "sha256-hMp4/UBN5moGBSqf8BJV2nBwgV3cry9uC2fJmdT5hkQ=";
})
];
cargoHash = "sha256-2ZzTvVoA4oxy26rL0tvdvXm2oVWpHP+gooyjB4vIP3M=";
cargoBuildFlags = [ "--package" "boa_cli" ];