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,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 (
|
||||||
|
|||||||
Reference in New Issue
Block a user