mirror of
https://github.com/hercules-ci/arion.git
synced 2024-11-23 09:38:12 +03:00
16 lines
720 B
Nix
16 lines
720 B
Nix
self: super: hself: hsuper:
|
|
{
|
|
arion-compose = import ./haskell-arion-compose.nix { pkgs = self; haskellPackages = hself; };
|
|
arion-compose-checked =
|
|
let pkg = /* super.haskell.lib.buildStrictly currently broken in nixos-unstable */ 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;
|
|
} |