arion/nix/haskell-overlay.nix

16 lines
678 B
Nix
Raw Normal View History

2019-07-29 13:49:26 +02:00
self: super: hself: hsuper:
{
2019-09-28 16:27:07 +02:00
arion-compose = import ./haskell-arion-compose.nix { pkgs = self; haskellPackages = hself; };
arion-compose-checked =
let pkg = super.haskell.lib.buildStrictly hself.arion-compose;
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 16:10:37 +02:00
}