summary refs log tree commit diff
path: root/pkgs/tools/nix/nix-output-monitor/default.nix
blob: a79b41a4a5ddc7394027c64811af74b5a57cf70e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  haskell,
  expect,
  haskellPackages,
  installShellFiles,
}: let
  inherit (haskell.lib.compose) justStaticExecutables overrideCabal;
  overrides = {
    passthru.updateScript = ./update.sh;
    testTarget = "unit-tests";
    buildTools = [installShellFiles];
    postInstall = ''
      substitute "exe-sh/nom-build" "$out/bin/nom-build" \
        --replace 'unbuffer' '${expect}/bin/unbuffer' \
        --replace 'nom' "$out/bin/nom"
      chmod a+x $out/bin/nom-build
      installShellCompletion --zsh --name _nom-build completions/completion.zsh
    '';
  };
in
  justStaticExecutables
  (overrideCabal overrides
    (haskellPackages.callPackage ./generated-package.nix {}))