From f597a231784ccf0e8258f070cce6152f087a2d06 Mon Sep 17 00:00:00 2001
From: Jean-Paul Calderone <exarkun@twistedmatrix.com>
Date: Thu, 17 Aug 2023 14:11:37 -0400
Subject: [PATCH] attempt to get `.#cabal-test` to work on ci

---
 flake.nix | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/flake.nix b/flake.nix
index 92c7171..906f465 100644
--- a/flake.nix
+++ b/flake.nix
@@ -87,6 +87,12 @@
               cat >cabal.project.local <<EOF
               -- This file is auto-generated by the flake devShell's shellHook.  Do
               -- not edit this file.  Make changes in flake.nix.
+              package zlib
+                -- by default the cabal build won't use pkg-config to find the
+                -- underlying zlib c library.  this will most likely cause
+                -- "cabal build" to fail (unless other steps are taken).  turn
+                -- on pkg-config so that the cabal-test app below can succeed.
+                flags: -bundled-c-zlib -non-blocking-ffi +pkg-config
               EOF
             '';
           }
-- 
GitLab