Files
nixpkgs/pkgs/by-name/bo/boa/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1011 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
bzip2,
openssl,
zstd,
}:
rustPlatform.buildRustPackage rec {
pname = "boa";
version = "0.20";
src = fetchFromGitHub {
owner = "boa-dev";
repo = "boa";
tag = "v${version}";
hash = "sha256-foCIzzFoEpcE6i0QrSbiob3YHIOeTpjwpAMtcPGL8Vg=";
fetchSubmodules = true;
};
cargoHash = "sha256-PphgRSVCj724eYAC04Orpz/klYuAhphiQ3v5TRChs+w=";
cargoBuildFlags = [
"--package"
"boa_cli"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
bzip2
openssl
zstd
];
env = {
ZSTD_SYS_USE_PKG_CONFIG = true;
};
meta = with lib; {
description = "Embeddable and experimental Javascript engine written in Rust";
mainProgram = "boa";
homepage = "https://github.com/boa-dev/boa";
changelog = "https://github.com/boa-dev/boa/blob/${src.rev}/CHANGELOG.md";
license = with licenses; [
mit # or
unlicense
];
maintainers = with maintainers; [ dit7ya ];
};
}