From 48b5056d28e82c9884437035e64f852bb9494704 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 6 Jan 2024 15:55:29 +0100 Subject: [PATCH] flake/packages: test all packages by default --- flake-modules/checks.nix | 1 - flake-modules/packages.nix | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/flake-modules/checks.nix b/flake-modules/checks.nix index b6ffeff8..48b55865 100644 --- a/flake-modules/checks.nix +++ b/flake-modules/checks.nix @@ -27,7 +27,6 @@ inherit pkgs; inherit (pkgs) lib; }; - docs = config.packages.docs ? null; }; }; } diff --git a/flake-modules/packages.nix b/flake-modules/packages.nix index 23b9d1aa..8d85505a 100644 --- a/flake-modules/packages.nix +++ b/flake-modules/packages.nix @@ -22,5 +22,8 @@ in docs // man-docs; + + # Test that all packages build fine when running `nix flake check`. + checks = config.packages; }; }