nixpkgs/pkgs/development/tools/build-managers/build2/remove-config-store-paths.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
867 B
Diff
Raw Normal View History

--- a/libbuild2/buildfile
+++ b/libbuild2/buildfile
2022-10-18 04:48:23 +02:00
@@ -83,9 +83,13 @@ config/cxx{host-config}: config/in{host-config}
# want it).
#
2022-10-18 04:48:23 +02:00
build2_config = $regex.replace_lines( \
+ $regex.replace_lines( \
$config.save(), \
'^( *(#|(config\.(test[. ]|dist\.|install\.chroot|config\.hermetic))).*|)$', \
[null], \
+ return_lines), \
+ '^.*'$getenv(NIX_STORE)'/[a-z0-9]{32}-.*$', \
+ [null], \
return_lines)
2022-10-18 04:48:23 +02:00
# Also preserve config.version.