36 lines
714 B
Nix
36 lines
714 B
Nix
{
|
|
description = "Bun dev shell";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
|
|
};
|
|
|
|
outputs = { self, nixpkgs }:
|
|
let
|
|
allSystems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
];
|
|
|
|
forAllSystems = f: nixpkgs.lib.genAttrs allSystems (system: f {
|
|
pkgs = import nixpkgs { inherit system; };
|
|
});
|
|
in
|
|
{
|
|
devShells = forAllSystems ({ pkgs }: {
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
bun
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "<bun dev shell>"
|
|
echo "Bun version: $(bun --version)"
|
|
'';
|
|
};
|
|
});
|
|
};
|
|
}
|