fix: make bun globally available
This commit is contained in:
parent
1cedf23655
commit
93e0ff494e
1 changed files with 12 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ let
|
|||
else
|
||||
getPkg "nodejs";
|
||||
cargoPackage = getPkg "cargo";
|
||||
bunPackage = getPkg "bun";
|
||||
|
||||
toolSpecs = [
|
||||
{
|
||||
|
|
@ -70,6 +71,11 @@ let
|
|||
cfg = cfg.cargo;
|
||||
defaultPackage = cargoPackage;
|
||||
}
|
||||
{
|
||||
name = "bun";
|
||||
cfg = cfg.bun;
|
||||
defaultPackage = bunPackage;
|
||||
}
|
||||
];
|
||||
|
||||
languagePackages = mkToolPackages toolSpecs;
|
||||
|
|
@ -102,6 +108,12 @@ in {
|
|||
description = "Rust package manager and toolchain.";
|
||||
};
|
||||
|
||||
bun = mkToolOption {
|
||||
name = "Bun";
|
||||
defaultPackage = bunPackage;
|
||||
description = "Fast all-in-one JavaScript runtime.";
|
||||
};
|
||||
|
||||
extraPackages = mkOption {
|
||||
type = types.listOf types.package;
|
||||
default = [ ];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue