Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 32 lines 709 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 hash = "sha256-8zbxE1qkEWeSYt2L5PElZeJPRuK4Yiooy8xDmCD/PYw="; 19 }; 20 21 cargoHash = "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 mainProgram = "swc"; 28 homepage = "https://github.com/swc-project/swc"; 29 license = licenses.asl20; 30 maintainers = with maintainers; [ dit7ya kashw2 ]; 31 }; 32}