feat: envrc flake support
This commit is contained in:
@@ -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
|
||||
@@ -19,14 +19,25 @@
|
||||
in
|
||||
{
|
||||
devShells = forEachSystem (pkgs: {
|
||||
default = pkgs.mkShell {
|
||||
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"
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user