nixpkgs/pkgs/by-name/co/cornelis/package.nix
2024-05-15 18:07:18 +03:00

28 lines
494 B
Nix

{
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
]