packages: Drop alejandra

Not needed anymore since nixfmt-rfc-style exists.
This commit is contained in:
Donovan Glover 2024-03-25 11:49:04 -04:00
parent b1c128e6ac
commit a169b39f8c
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
4 changed files with 0 additions and 53 deletions

View File

@ -30,7 +30,6 @@ in
# nix # nix
nil nil
alejandra
nixpkgs-fmt nixpkgs-fmt
nixfmt-rfc-style nixfmt-rfc-style

View File

@ -1,9 +0,0 @@
{
nixpkgs.overlays = [
(final: prev: {
alejandra = prev.alejandra.overrideAttrs (oldAttrs: {
patches = (oldAttrs.patches or [ ]) ++ [ ../patches/alejandra-remove-ads.patch ];
});
})
];
}

View File

@ -1,6 +1,5 @@
{ {
imports = [ imports = [
./alejandra.nix
./base16-schemes.nix ./base16-schemes.nix
./eza.nix ./eza.nix
./hyprland.nix ./hyprland.nix

View File

@ -1,42 +0,0 @@
diff --git a/src/alejandra_cli/src/cli.rs b/src/alejandra_cli/src/cli.rs
index bab102c..b90bf1d 100644
--- a/src/alejandra_cli/src/cli.rs
+++ b/src/alejandra_cli/src/cli.rs
@@ -7,7 +7,6 @@ use futures::future::RemoteHandle;
use futures::stream::FuturesUnordered;
use futures::task::SpawnExt;
-use crate::ads::random_ad;
use crate::verbosity::Verbosity;
/// The Uncompromising Nix Code Formatter.
@@ -203,11 +202,6 @@ pub fn main() -> std::io::Result<()> {
(true, false) => "requires formatting",
}
);
-
- if in_place {
- eprintln!();
- eprint!("{}", random_ad());
- }
}
std::process::exit(if in_place { 0 } else { 2 });
@@ -218,8 +212,6 @@ pub fn main() -> std::io::Result<()> {
eprintln!(
"Congratulations! Your code complies with the Alejandra style."
);
- 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..258f656 100644
--- a/src/alejandra_cli/src/lib.rs
+++ b/src/alejandra_cli/src/lib.rs
@@ -1,4 +1,3 @@
-mod ads;
pub mod cli;
mod find;
mod verbosity;