haskellPackages.mkDerivation: jailbreak any/all cabal files

Since Cabal only allows a single cabal file per directory, we can just
jailbreak *.cabal which works even if the user doesn't have set pname to
match the cabal file name (which they SHOULD do, though).

The only remaining reference to ${pname}.cabal in the revision handling
code is fine since we know the proper name of the cabal file from
Hackage in that case.
This commit is contained in:
sternenseemann
2025-09-28 16:30:38 +02:00
parent 621a3a56eb
commit d9757d4fe3
@@ -614,7 +614,7 @@ lib.fix (
postPatch =
optionalString jailbreak ''
echo "Run jailbreak-cabal to lift version restrictions on build inputs."
${jailbreak-cabal}/bin/jailbreak-cabal ${pname}.cabal
${jailbreak-cabal}/bin/jailbreak-cabal *.cabal
''
+ postPatch;