feat(devShells): move to separate directory

This commit is contained in:
reo101 2023-02-17 02:43:18 +02:00
parent e061bf4db9
commit 10b3f3da0f
Signed by: reo101
GPG key ID: 675AA7EF13964ACB
3 changed files with 8 additions and 4 deletions

View file

@ -86,7 +86,7 @@
# Dev Shells (`nix develop`) # Dev Shells (`nix develop`)
devShells = forEachPkgs (pkgs: devShells = forEachPkgs (pkgs:
import ./shell.nix { inherit pkgs; } import ./shells { inherit pkgs; }
); );
# Formatter # Formatter

6
shells/default.nix Normal file
View file

@ -0,0 +1,6 @@
# If pkgs is not defined, instanciate nixpkgs from locked commit
{ pkgs ? (import ../nixpkgs.nix) { }
, ...
}: {
default = import ./default { inherit pkgs; };
}

View file

@ -1,7 +1,5 @@
# Shell for bootstrapping flake-enabled nix and other tooling # Shell for bootstrapping flake-enabled nix and other tooling
# If pkgs is not defined, instanciate nixpkgs from locked commit { pkgs
{ pkgs ?
(import ./nixpkgs.nix) { }
, ... , ...
}: { }: {
default = pkgs.mkShell { default = pkgs.mkShell {