nixpkgs/pkgs/development/tools/swc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
688 B
Nix
Raw Normal View History

2022-12-10 08:01:46 +00:00
{ lib
, rustPlatform
, fetchCrate
}:
rustPlatform.buildRustPackage rec {
pname = "swc";
2023-09-09 01:23:16 +00:00
version = "0.91.69";
2023-08-31 09:57:52 +00:00
env = {
# swc depends on nightly features
RUSTC_BOOTSTRAP = 1;
};
2022-12-10 08:01:46 +00:00
src = fetchCrate {
pname = "swc_cli";
inherit version;
2023-09-09 01:23:16 +00:00
sha256 = "sha256-8zbxE1qkEWeSYt2L5PElZeJPRuK4Yiooy8xDmCD/PYw=";
2022-12-10 08:01:46 +00:00
};
2023-09-09 01:23:16 +00:00
cargoSha256 = "sha256-kRsRUOvDMRci3bN5NfhiLCWojNkSuLz3K4BfKfGYc7g=";
2022-12-10 08:01:46 +00:00
buildFeatures = [ "swc_core/plugin_transform_host_native" ];
meta = with lib; {
description = "Rust-based platform for the Web";
homepage = "https://github.com/swc-project/swc";
license = licenses.asl20;
2023-09-03 07:55:11 +00:00
maintainers = with maintainers; [ dit7ya kashw2 ];
2022-12-10 08:01:46 +00:00
};
}