From b08d3e27c44f58ae7f4a08fd7cf6563866a55398 Mon Sep 17 00:00:00 2001 From: Colin Date: Mon, 19 Jan 2026 00:36:12 +0000 Subject: [PATCH] pkgsStrict: init enabling top-level access to this config supports the effort to enable `strictDeps` by default: PRs to support musl, static, and cross compiled builds benefit from simple instructions the reviewer can observe improvements, e.g.: - "fixes build for `pkgsMusl.hello`" - "fixes `nix-build -A pkgsStatic.hello`" - "fixes `pkgsCross.aarch64-multiplatform.hello`" now strictDeps-related changes can benefit from this same idiom: - "fixes build for `pkgsStrict.hello`" --- pkgs/top-level/variants.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/top-level/variants.nix b/pkgs/top-level/variants.nix index 28b7ae323956..dd817788b5a9 100644 --- a/pkgs/top-level/variants.nix +++ b/pkgs/top-level/variants.nix @@ -173,4 +173,10 @@ self: super: { ] ++ overlays; }; + + pkgsStrict = nixpkgsFun { + config = super.config // { + strictDepsByDefault = true; + }; + }; }