haskellPackages.Chart-tests: fix override
preCheck should reuse the old preCheck phase, not the postPatch phase (which for example would contain the jailbreak-cabal call). Also use overrideCabal which should have less pitfalls in this context.
This commit is contained in:
parent
686eebd97e
commit
f7ce5752d7
1 changed files with 2 additions and 2 deletions
|
@ -1121,8 +1121,8 @@ self: super: {
|
|||
});
|
||||
|
||||
# Chart-tests needs and compiles some modules from Chart itself
|
||||
Chart-tests = (addExtraLibrary super.Chart-tests self.QuickCheck).overrideAttrs (old: {
|
||||
preCheck = old.postPatch or "" + ''
|
||||
Chart-tests = overrideCabal (addExtraLibrary super.Chart-tests self.QuickCheck) (old: {
|
||||
preCheck = old.preCheck or "" + ''
|
||||
tar --one-top-level=../chart --strip-components=1 -xf ${self.Chart.src}
|
||||
'';
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue