2019-07-29 14:49:26 +03:00
|
|
|
self: super: hself: hsuper:
|
|
|
|
{
|
2019-09-28 17:27:07 +03:00
|
|
|
arion-compose = import ./haskell-arion-compose.nix { pkgs = self; haskellPackages = hself; };
|
2019-10-04 20:09:29 +03:00
|
|
|
arion-compose-checked =
|
2021-07-17 16:15:01 +03:00
|
|
|
let pkg = /* super.haskell.lib.buildStrictly currently broken in nixos-unstable */ hself.arion-compose;
|
2019-10-04 20:09:29 +03:00
|
|
|
checked = super.haskell.lib.overrideCabal pkg (o: {
|
|
|
|
postConfigure = ''${o.postConfigure or ""}
|
|
|
|
if ! ${hsuper.cabal-install}/bin/cabal check;
|
|
|
|
then
|
|
|
|
echo 1>&2 ERROR: cabal file is invalid. Above warnings were errors.
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
in checked;
|
2019-06-14 17:10:37 +03:00
|
|
|
}
|