Skip to content

Commit

Permalink
fix: use devShells.default on template flake (#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
WolfangAukang authored Oct 27, 2023
1 parent cd4e2fd commit 1aed986
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion templates/toml/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

outputs = { self, flake-utils, devshell, nixpkgs, ... }:
flake-utils.lib.eachDefaultSystem (system: {
devShell =
devShells.default =
let
pkgs = import nixpkgs {
inherit system;
Expand Down
3 changes: 2 additions & 1 deletion templates/toml/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ then
else "path";
in
(builtins.getFlake "${scheme}://${toString ./.}")
.devShell
.devShells
.${builtins.currentSystem}
.default

# Otherwise we'll use the flake-compat shim
else
Expand Down

0 comments on commit 1aed986

Please sign in to comment.