feat: envrc flake support

This commit is contained in:
Catriel Müller
2026-02-02 18:32:22 -03:00
parent e3f8cc91c4
commit 6e66979f9e
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 in
{ {
devShells = forEachSystem (pkgs: { devShells = forEachSystem (pkgs: {
default = pkgs.mkShell { default =
packages = with pkgs; [ let
bun kilo = pkgs.writeShellScriptBin "kilo" ''
nodejs_20 cd "$KILO_ROOT"
pkg-config exec ${pkgs.bun}/bin/bun dev "$@"
openssl '';
git in
]; pkgs.mkShell {
}; packages = with pkgs; [
bun
nodejs_20
pkg-config
openssl
git
kilo
];
shellHook = ''
export KILO_ROOT="$PWD"
'';
};
}); });
packages = forEachSystem ( packages = forEachSystem (