depot/third_party/nixpkgs/pkgs/tools/nix/nix-output-monitor/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

23 lines
629 B
Nix

{
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
'';
mainProgram = "nom";
};
in
justStaticExecutables
(overrideCabal overrides
(haskellPackages.callPackage ./generated-package.nix {}))