From 32c8e793bce08a7ec53c9da4d3924a681173c1e0 Mon Sep 17 00:00:00 2001 From: Ashesh Ambasta Date: Sun, 19 Apr 2020 09:47:06 +0200 Subject: [PATCH] Additional docs for doJailbreak Yesterday with @infinisil on #nixos, he pointed me to: peti/jailbreak-cabal#7 after a good deal of time wrangling through a package to make it work. The `nix-build -K` command, is very handy for debugging things like these, again I learnt from infinisil. And after much experimenting and looking through, it turned out that jailbreaking wasn't working as expected, and its documentation could point it out to avoid future confusion. --- pkgs/development/haskell-modules/lib.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/haskell-modules/lib.nix b/pkgs/development/haskell-modules/lib.nix index aebab7b6f04..58d50592ac4 100644 --- a/pkgs/development/haskell-modules/lib.nix +++ b/pkgs/development/haskell-modules/lib.nix @@ -86,6 +86,11 @@ rec { future. Instead of jailbreaking, you can patch the cabal file. + + Note that jailbreaking at this time, doesn't lift bounds on + conditional branches. + https://github.com/peti/jailbreak-cabal/issues/7 has further details. + */ doJailbreak = drv: overrideCabal drv (drv: { jailbreak = true; });