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