mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 08:43:06 +00:00
28 lines
494 B
Nix
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
|
|
]
|