Commit 465ae2d5 authored by Philipp Joram's avatar Philipp Joram
Browse files

cornelis: init at 0.2.0.0

parent 8be493ad
Loading
Loading
Loading
Loading
+27 −0
Original line number Diff line number Diff line
{
  lib,
  haskell,
  haskellPackages,

  # Test dependencies
  cornelis,
  runCommand,
}:
let
  inherit (haskell.lib.compose) overrideCabal justStaticExecutables;
  overrides = {
    description = "agda-mode for Neovim";

    passthru = {
      tests = runCommand "cornelis-tests" { nativeBuildInputs = [ cornelis ]; } ''
        cornelis --help > $out
      '';
    };
  };
in
lib.pipe haskellPackages.cornelis [
  (overrideCabal overrides)

  # Reduce closure size
  justStaticExecutables
]