1{ lib
2, rustPlatform
3, fetchCrate
4}:
5
6rustPlatform.buildRustPackage rec {
7 pname = "swc";
8 version = "0.91.19";
9
10 src = fetchCrate {
11 pname = "swc_cli";
12 inherit version;
13 sha256 = "sha256-BzReetAOKSGzHhITXpm+J2Rz8d9Hq2HUagQmfst74Ag=";
14 };
15
16 cargoSha256 = "sha256-1U9YLrPYENv9iJobCxtgnQakJLDctWQwnDUtpLG3PGc=";
17
18 buildFeatures = [ "swc_core/plugin_transform_host_native" ];
19
20 meta = with lib; {
21 description = "Rust-based platform for the Web";
22 homepage = "https://github.com/swc-project/swc";
23 license = licenses.asl20;
24 maintainers = with maintainers; [ dit7ya ];
25 };
26}