From 8c2f571052c58e33e945a2696d3673434e8a7e57 Mon Sep 17 00:00:00 2001 From: Anund Date: Sat, 7 Dec 2024 21:51:39 +1100 Subject: [PATCH] nerd-fonts: improve alias throw to give example migration --- .../doc/manual/release-notes/rl-2505.section.md | 2 +- pkgs/top-level/aliases.nix | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2505.section.md b/nixos/doc/manual/release-notes/rl-2505.section.md index e09e80792fb9..89e43abc584c 100644 --- a/nixos/doc/manual/release-notes/rl-2505.section.md +++ b/nixos/doc/manual/release-notes/rl-2505.section.md @@ -70,7 +70,7 @@ files have changed from `$out/share/fonts/{opentype,truetype}/NerdFonts` to `$out/share/fonts/{opentype,truetype}/NerdFonts/`, where `` can be found in the [official website](https://www.nerdfonts.com/font-downloads) as the titles in preview images, with the "Nerd Font" - suffix and any whitespaces trimmed. + suffix and any whitespaces trimmed. Configuration changes are required, see build output. - `retroarch` has been refactored and the older `retroarch.override { cores = [ ... ]; }` to create a RetroArch derivation with custom cores doesn't work anymore, use `retroarch.withCores (cores: [ ... ])` instead. If you need more customization (e.g.: custom settings), use `wrapRetroArch` instead. diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index c54bc8a6d161..a3e0509514e2 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -862,7 +862,21 @@ mapAliases { nextcloud27Packages = throw "Nextcloud27 is EOL!"; # Added 2024-06-25 nagiosPluginsOfficial = monitoring-plugins; neochat = libsForQt5.kdeGear.neochat; # added 2022-05-10 - nerdfonts = throw "nerdfonts has been separated into individual font packages under the namespace nerd-fonts. To list all fonts use `builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts)`."; # Added 2024-11-09 + nerdfonts = throw ''nerdfonts has been separated into individual font packages under the namespace nerd-fonts. + For example change: + fonts.packages = [ + ... + (pkgs.nerdfonts.override { fonts = [ "0xproto" "DroidSansMono" ]; }) + ] + to + fonts.packages = [ + ... + pkgs.nerd-fonts._0xproto + pkgs.nerd-fonts.droid_sans_mono + ] + or for all fonts + font.packages = [ ... ] ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts) + ''; # Added 2024-11-09 newlibCross = newlib; # Added 2024-09-06 newlib-nanoCross = newlib-nano; # Added 2024-09-06 nix-direnv-flakes = nix-direnv;