nixpkgs-suyu/pkgs/tools/nix/nix-output-monitor/default.nix
Luna Nova a824a8ec3e
nix-output-monitor: set meta.mainProgram
Fixes `error: unable to execute '/nix/store/arrb5j23znf00p1i0kvd9bmb7ddamlxx-nix-output-monitor-2.0.0.2/bin/nix-output-monitor': No such file or directory` with nix run
2022-10-21 17:48:24 -07: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 {}))