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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user