diff --git a/nix/configurations/vanadium/overlay.nix b/nix/configurations/vanadium/overlay.nix index 504bb084..c2e62065 100644 --- a/nix/configurations/vanadium/overlay.nix +++ b/nix/configurations/vanadium/overlay.nix @@ -29,6 +29,12 @@ in ./patches/helix/W-as-write.patch ]; + # Too loud + alejandra.__output.patches.__append = [ + ./patches/alejandra/no-ads.patch + ]; + alejandra.__output.doCheck = _: false; + fcitx5.__output.cmakeFlags.__append = [ (lib.cmakeFeature "ENABLE_EMOJI" "Off") (lib.cmakeFeature "ENABLE_WAYLAND" "Off") diff --git a/nix/configurations/vanadium/patches/alejandra/no-ads.patch b/nix/configurations/vanadium/patches/alejandra/no-ads.patch new file mode 100644 index 00000000..34978153 --- /dev/null +++ b/nix/configurations/vanadium/patches/alejandra/no-ads.patch @@ -0,0 +1,49 @@ +diff --git a/src/alejandra_cli/src/cli.rs b/src/alejandra_cli/src/cli.rs +index 0ef0496..1791649 100644 +--- a/src/alejandra_cli/src/cli.rs ++++ b/src/alejandra_cli/src/cli.rs +@@ -9,7 +9,7 @@ use futures::future::RemoteHandle; + use futures::stream::FuturesUnordered; + use futures::task::SpawnExt; + +-use crate::ads::random_ad; ++// use crate::ads::random_ad; + use crate::verbosity::Verbosity; + + /// The Uncompromising Nix Code Formatter. +@@ -222,10 +222,10 @@ pub fn main() -> ! { + } + ); + +- if in_place { +- eprintln!(); +- eprint!("{}", random_ad()); +- } ++ // if in_place { ++ // eprintln!(); ++ // eprint!("{}", random_ad()); ++ // } + } + + std::process::exit(if in_place { 0 } else { 2 }); +@@ -236,8 +236,8 @@ pub fn main() -> ! { + eprintln!( + "Congratulations! Your code complies with the Alejandra style." + ); +- eprintln!(); +- eprint!("{}", random_ad()); ++ // eprintln!(); ++ // eprint!("{}", random_ad()); + } + + std::process::exit(0); +diff --git a/src/alejandra_cli/src/lib.rs b/src/alejandra_cli/src/lib.rs +index fd49ce8..157b3eb 100644 +--- a/src/alejandra_cli/src/lib.rs ++++ b/src/alejandra_cli/src/lib.rs +@@ -1,4 +1,4 @@ +-mod ads; ++// mod ads; + pub mod cli; + mod find; + mod verbosity;