nixos-configs/overlays/nix-version/default.nix
matt1432 8f34e3c7e6
All checks were successful
Discord / discord commits (push) Has been skipped
feat(nixFastBuild): remove useless message from nom
2025-01-29 11:53:22 -05:00

32 lines
857 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.

self: {nix ? null}: final: prev: let
inherit (builtins) mapAttrs;
inherit (self.inputs) nix-eval-jobs nix-fast-build;
nullCheck = n: v:
if nix == null
then prev.${n}
else v;
in
mapAttrs nullCheck {
inherit nix;
nix-serve = prev.nix-serve-ng.override {
inherit nix;
};
nix-output-monitor = prev.nix-output-monitor.overrideAttrs (o: {
postPatch = ''
${o.postPatch}
sed -i 's/.*" nom hasnt detected any input. Have you redirected nix-build stderr into nom? (See -h and the README for details.)".*//' ./lib/NOM/Print.hs
'';
});
nix-fast-build = nix-fast-build.packages.${final.system}.nix-fast-build.override {
inherit (final) nix-output-monitor;
nix-eval-jobs = nix-eval-jobs.packages.${final.system}.default.override {
inherit nix;
};
};
}