Merge pull request #81 from Kilo-Org/catrielmuller/envrc-support

Add envrc flake support with kilo dev command wrapper
This commit is contained in:
Catriel Müller
2026-02-03 01:55:53 +01:00
committed by GitHub
2 changed files with 24 additions and 9 deletions
+4
View File
@@ -0,0 +1,4 @@
# Check if nix command is available before trying to use flake
if command -v nix >/dev/null 2>&1; then
use flake
fi
+20 -9
View File
@@ -19,15 +19,26 @@
in
{
devShells = forEachSystem (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
bun
nodejs_20
pkg-config
openssl
git
];
};
default =
let
kilo = pkgs.writeShellScriptBin "kilo" ''
cd "$KILO_ROOT"
exec ${pkgs.bun}/bin/bun dev "$@"
'';
in
pkgs.mkShell {
packages = with pkgs; [
bun
nodejs_20
pkg-config
openssl
git
kilo
];
shellHook = ''
export KILO_ROOT="$PWD"
'';
};
});
packages = forEachSystem (