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