added bun flake

This commit is contained in:
2026-05-03 17:37:16 +01:00
parent 79ccd11b5b
commit b0ec23c2c6
2 changed files with 45 additions and 0 deletions

41
bun/flake.nix Normal file
View File

@@ -0,0 +1,41 @@
{
description = "A simple Rust development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
utils,
}:
utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs { inherit system; };
in
{
devShells.default = pkgs.mkShell {
name = "flake-bunshell";
buildInputs = with pkgs; [
bun
];
# Environment variables
shellHook = ''
export DEVSHELL_NAME="󱄅 flake/#89dceb| Bun/yellow"
# Trigger zsh
if [[ -z "$ZSH_VERSION" ]]; then
exec zsh
fi
'';
};
}
);
}

View File

@@ -10,6 +10,10 @@
path = ./rust;
description = "A standard Rust development environment";
};
bun = {
path = ./bun;
description = "Flake for making a bun project";
};
};
};
}