From 48133f06df922780b56dd2e13dbbaa1a9e4152a6 Mon Sep 17 00:00:00 2001 From: Sander Date: Wed, 20 Mar 2024 01:12:49 +0000 Subject: [PATCH] Rename deprecated defaultPackage, defaultTemplate, and devShell --- flake.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 3ca4cc32..bcc064cd 100644 --- a/flake.nix +++ b/flake.nix @@ -26,7 +26,7 @@ { flakeModule = ./flake-module.nix; - defaultTemplate = { + templates.default = { path = ./template; description = '' A template with flake-parts and nixpkgs-fmt. @@ -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; };