haskellPackages.warp: stop including Paths_ module by default

This was made possible to disable, which we should really probably just
do. It might make some HTTP servers not return their version in a
header, but that feels like an antipattern anyhow.

See: https://github.com/yesodweb/wai/pull/1044
See: https://github.com/NixOS/nixpkgs/blob/ecdb2e3a81213177cde9ce769e5f086ff24387b6/pkgs/development/haskell-modules/configuration-darwin.nix#L363-L372
This commit is contained in:
Jade Lovelace
2026-01-23 12:52:44 -08:00
parent aa384aff2d
commit bc964b1813
@@ -503,8 +503,12 @@ builtins.intersectAttrs super {
# Tries accessing the GitHub API
github-app-token = dontCheck super.github-app-token;
# The curl executable is required for withApplication tests.
warp = addTestToolDepend pkgs.curl super.warp;
warp = lib.pipe super.warp [
# The curl executable is required for withApplication tests.
(addTestToolDepend pkgs.curl)
# Avoids much closure size of downstream deps on macOS: https://github.com/yesodweb/wai/pull/1044
(disableCabalFlag "include-warp-version")
];
lz4-frame-conduit = addTestToolDepends [ pkgs.lz4 ] super.lz4-frame-conduit;