depot/third_party/nixpkgs/pkgs/tools/nix/nix-output-monitor/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

31 lines
717 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
haskell,
haskellPackages,
installShellFiles,
lib,
}: let
inherit (haskell.lib.compose) justStaticExecutables overrideCabal;
overrides = {
passthru.updateScript = ./update.sh;
# nom has unit-tests and golden-tests
# golden-tests call nix and thus cant be run in a nix build.
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 completions/*
'';
};
raw-pkg = haskellPackages.callPackage ./generated-package.nix {};
in
lib.pipe
raw-pkg
[
(overrideCabal overrides)
justStaticExecutables
]