at 23.11-beta 31 lines 688 B view raw
1{ lib 2, rustPlatform 3, fetchCrate 4}: 5 6rustPlatform.buildRustPackage rec { 7 pname = "swc"; 8 version = "0.91.69"; 9 10 env = { 11 # swc depends on nightly features 12 RUSTC_BOOTSTRAP = 1; 13 }; 14 15 src = fetchCrate { 16 pname = "swc_cli"; 17 inherit version; 18 sha256 = "sha256-8zbxE1qkEWeSYt2L5PElZeJPRuK4Yiooy8xDmCD/PYw="; 19 }; 20 21 cargoSha256 = "sha256-kRsRUOvDMRci3bN5NfhiLCWojNkSuLz3K4BfKfGYc7g="; 22 23 buildFeatures = [ "swc_core/plugin_transform_host_native" ]; 24 25 meta = with lib; { 26 description = "Rust-based platform for the Web"; 27 homepage = "https://github.com/swc-project/swc"; 28 license = licenses.asl20; 29 maintainers = with maintainers; [ dit7ya kashw2 ]; 30 }; 31}