nvf/shell.nix
NotAShelf c1fea30214
meta: add flake-compat & expose flakeless interface
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964afc8b84fe10106f0a90d4bf3acaeee85
2025-07-20 13:38:02 +03:00

7 lines
329 B
Nix

# Make the behaviour of `nix-shell` consistent with the one of `nix develop`
# by returning the default devShell output from the flake. This is useful when
# I do not want to work with direnv, or simply need backwards compatibility.
{system ? builtins.currentSystem}: let
nvf = import ./.;
in
nvf.devShells.${system}.default