From 2ff762ccf7b402df0d01d9e616ac006c9f1388ca Mon Sep 17 00:00:00 2001 From: Yiyu Zhou Date: Wed, 25 Mar 2026 21:51:07 -0700 Subject: [PATCH] gnumake: enable strictDeps --- pkgs/by-name/gn/gnumake/package.nix | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/gn/gnumake/package.nix b/pkgs/by-name/gn/gnumake/package.nix index 65d53dd648d9..79716bd7e852 100644 --- a/pkgs/by-name/gn/gnumake/package.nix +++ b/pkgs/by-name/gn/gnumake/package.nix @@ -39,18 +39,16 @@ stdenv.mkDerivation (finalAttrs: { # directory until derivation realization to avoid unnecessary Nix evaluations. patches = lib.filesystem.listFilesRecursive ./patches; + strictDeps = true; + nativeBuildInputs = [ autoreconfHook pkg-config ] - ++ lib.optionals (!inBootstrap) [ texinfo ]; + ++ lib.optionals (!inBootstrap) [ texinfo ] + ++ lib.optional stdenv.isCygwin gettext; - buildInputs = - lib.optionals guileEnabled [ guile ] - # gettext gets pulled in via autoreconfHook because strictDeps is not set, - # and is linked against. Without this, it doesn't end up in HOST_PATH. - # TODO: enable strictDeps, and either make this dependency explicit, or remove it - ++ lib.optional stdenv.isCygwin gettext; + buildInputs = lib.optionals guileEnabled [ guile ]; configureFlags = lib.optional guileEnabled "--with-guile"