mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 16:43:58 +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
|
|
]
|