From bc964b181304fbe64e884b6c2bf037ae443bf8f2 Mon Sep 17 00:00:00 2001 From: Jade Lovelace Date: Fri, 23 Jan 2026 12:40:56 -0800 Subject: [PATCH] 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 --- pkgs/development/haskell-modules/configuration-nix.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 938cb4eda4bd..818053fbd493 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -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;