2023-02-09 11:40:11 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchCrate
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "swc";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.91.369";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
env = {
|
|
|
|
# swc depends on nightly features
|
|
|
|
RUSTC_BOOTSTRAP = 1;
|
|
|
|
};
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
pname = "swc_cli";
|
|
|
|
inherit version;
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-6n6zHMV87h1kmjzEmdE86/toHI99q2HO1EEGHUE9sg8=";
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
cargoHash = "sha256-/Ku0W+L2mqVYDSkd2zRqM7UhHueXya4zjewp/xO/XlQ";
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Rust-based platform for the Web";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "swc";
|
2023-02-09 11:40:11 +00:00
|
|
|
homepage = "https://github.com/swc-project/swc";
|
|
|
|
license = licenses.asl20;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ dit7ya kashw2 ];
|
2023-02-09 11:40:11 +00:00
|
|
|
};
|
|
|
|
}
|