Skip to content

Commit

Permalink
Fix deprecated devShell warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rake5k committed Jan 8, 2023
1 parent 2ecdd2c commit 1bdd42c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 2 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,9 @@
})
];

devShell = getDevShell "nixcfg";

devShells = listToAttrs [
(mkDevShell "nixcfg" {
(mkDevShell "default" {
name = "nixcfg";
checksShellHook = system: self.checks."${system}".pre-commit-check.shellHook;
packages = pkgs: with pkgs; [ nixpkgs-fmt shellcheck statix ];
customShellHook = mkShellCheck;
Expand Down
6 changes: 3 additions & 3 deletions flake/builders/mkDevShell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ pkgs, name, system, args, ... }:
{ pkgs, system, args, ... }:

let

Expand All @@ -8,8 +8,8 @@ let

in

pkgs.mkShell {
inherit name;
pkgs.mkShell rec {
inherit (args) name;
buildInputs = with pkgs; [
# banner printing on enter
figlet
Expand Down

0 comments on commit 1bdd42c

Please sign in to comment.