Skip to content

Commit

Permalink
Rename deprecated defaultPackage, defaultTemplate, and devShell
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Mar 20, 2024
1 parent 5e4c5ea commit 48133f0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{
flakeModule = ./flake-module.nix;

defaultTemplate = {
templates.default = {
path = ./template;
description = ''
A template with flake-parts and nixpkgs-fmt.
Expand All @@ -39,11 +39,11 @@
exposed-stable = import ./nix { nixpkgs = nixpkgs-stable; inherit system; gitignore-nix-src = gitignore; isFlakes = true; };
in
{
packages = exposed.packages;

defaultPackage = exposed.packages.pre-commit;
packages = exposed.packages // {
default = exposed.packages.pre-commit;
};

devShell = nixpkgs.legacyPackages.${system}.mkShell {
devShells.default = nixpkgs.legacyPackages.${system}.mkShell {
inherit (exposed.checks.pre-commit-check) shellHook;
};

Expand Down

0 comments on commit 48133f0

Please sign in to comment.