This commit is contained in:
2025-12-25 15:01:04 -07:00
parent 621a9d410b
commit ef69b83a6a
10 changed files with 183 additions and 0 deletions

1
bun/.envrc Normal file
View File

@@ -0,0 +1 @@
use flake

35
bun/flake.nix Normal file
View File

@@ -0,0 +1,35 @@
{
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)"
'';
};
});
};
}