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.
main
sternenseemann 3 years ago committed by sterni
parent 686eebd97e
commit f7ce5752d7
  1. 4
      pkgs/development/haskell-modules/configuration-common.nix

@ -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…
Cancel
Save