1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00
home-manager/tests/darwinScrublist.nix
home-manager-bot 282e1e029c
darwinScrublist: update (#7157) (#7168)
(cherry picked from commit da282034f4)

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
Co-authored-by: Austin Horstman <khaneliman12@gmail.com>
2025-05-30 23:17:53 -05:00

187 lines
2.8 KiB
Nix

{ lib, scrubDerivation }:
let
# List of packages that need to be scrubbed on Darwin
# Packages are scrubbed on Linux and expected in test output
packagesToScrub = [
"aerc"
"aerospace"
"alacritty"
"alot"
"antidote"
"aria2"
"atuin"
"autojump"
"bacon"
"bash"
"bashInteractive"
"bash-completion"
"bash-preexec"
"bat"
"borgmatic"
"bottom"
"broot"
"browserpass"
"btop"
"carapace"
"cava"
"clock-rs"
"cmus"
"comodoro"
"darcs"
"dircolors"
"delta"
"direnv"
"earthly"
"element-desktop"
"emacs"
"espanso"
"eza"
"fastfetch"
"feh"
"fzf"
"gallery-dl"
"gh"
"gh-dash"
"ghostty"
"git"
"patdiff"
"gitMinimal"
"git-cliff"
"git-credential-oauth"
"git-lfs"
"git-worktree-switcher"
"gnupg"
"go"
"gradle"
"granted"
"helix"
"hello"
"himalaya"
"hjson-go"
"htop"
"hyfetch"
"i3status"
"inori"
"irssi"
"isync"
"jankyborders"
"jujutsu"
"joplin-desktop"
"jqp"
"k9s"
"kakoune"
"khal"
"khard"
"kitty"
"kubecolor"
"lapce"
"lazydocker"
"lazygit"
"ledger"
"less"
"lesspipe"
"lf"
"lsd"
"lieer"
"mbsync"
"meli"
"mergiraf"
"micro"
"mise"
"mpv"
"mu"
"mujmap"
"msmtp"
"ncmpcpp"
"ne"
"neomutt"
"neovide"
"neovim"
"newsboat"
"nheko"
"nix"
"nix-direnv"
"nix-index"
"nix-init"
"nix-your-shell"
"notmuch"
"npth"
"nushell"
"oh-my-posh"
"ollama"
"onlyoffice-desktopeditors"
"openstackclient"
"papis"
"pay-respects"
"pet"
"pistol"
"pls"
"poetry"
"powerline-go"
"pubs"
"pyenv"
"qcal"
"qutebrowser"
"ranger"
"rio"
"ripgrep"
"ruff"
"sage"
"sapling"
"sbt"
"scmpuff"
"senpai"
"sftpman"
"sioyek"
"skhd"
"sm64ex"
"smug"
"spotify-player"
"starship"
"taskwarrior"
"tealdeer"
"texlive"
"thefuck"
"thunderbird"
"tmate"
"tmux"
"topgrade"
"translate-shell"
"vifm"
"vim-vint"
"vimPlugins"
"visidata"
"vscode"
"wallust"
"watson"
"wezterm"
"yazi"
"yq-go"
"yubikey-agent"
"zed-editor"
"zellij"
"zk"
"zoxide"
"zplug"
"zsh"
];
# Create an overlay that scrubs packages in the scrublist
packageScrubOverlay =
self: super:
lib.mapAttrs (
name: value:
if lib.elem name packagesToScrub then
# Apply scrubbing to this specific package
scrubDerivation name value
else
value
) super;
in
self: super:
packageScrubOverlay self super
// {
buildPackages = super.buildPackages.extend packageScrubOverlay;
}