From 3ddf69b37d472e6cb548deb9ab0a3004543b4070 Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 16 Aug 2023 05:25:37 -0700 Subject: [PATCH] gnu-config: set dontUpdateAutotoolsGnuConfigScripts = true --- pkgs/development/libraries/gnu-config/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/gnu-config/default.nix b/pkgs/development/libraries/gnu-config/default.nix index 4b115d47f98..2b088eb459a 100644 --- a/pkgs/development/libraries/gnu-config/default.nix +++ b/pkgs/development/libraries/gnu-config/default.nix @@ -31,6 +31,13 @@ in stdenv.mkDerivation { runHook postUnpack ''; + # If this isn't set, `pkgs.gnu-config.overrideAttrs( _: { patches + # = ...; })` will behave very counterintuitively: the (unpatched) + # gnu-config from the updateAutotoolsGnuConfigScriptsHook stdenv's + # defaultNativeBuildInputs will "update" the patched gnu-config by + # reverting the patch! + dontUpdateAutotoolsGnuConfigScripts = true; + dontConfigure = true; dontBuild = true;