diff options
author | sternenseemann <sternenseemann@systemli.org> | 2024-01-31 18:53:36 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2024-03-13 12:05:08 +0100 |
commit | f06714e0a52a5e3f60b3b759afe9f2ae96f8f6e6 (patch) | |
tree | 142cb0cf3e644746536e874214178f71c8359e2f /pkgs/applications/terminal-emulators | |
parent | df0f8b6eaf7127ea69441e5ba47fd46a801548fe (diff) |
foot: use default priority (> ncurses prio in systemPackages)
Why hasn't anybody told me that the higher the priority value the lower the priority? The meta.priority value I chose for foot had the opposite effect I intended. Priority 9 (as ncurses has in systemPackages) is just one step higher in priority than lib.meta.lowPrio. Just using the default priority (which for buildEnv equates to 5 although nix-env(1) claims the default priority is 0) gets us the desired result: foot.terminfo's files will overwrite any symlinks to ncurses.
Diffstat (limited to 'pkgs/applications/terminal-emulators')
-rw-r--r-- | pkgs/applications/terminal-emulators/foot/default.nix | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/pkgs/applications/terminal-emulators/foot/default.nix b/pkgs/applications/terminal-emulators/foot/default.nix index f123450c50c3d..9f6cba1d55f15 100644 --- a/pkgs/applications/terminal-emulators/foot/default.nix +++ b/pkgs/applications/terminal-emulators/foot/default.nix @@ -212,19 +212,6 @@ stdenv.mkDerivation { license = licenses.mit; maintainers = [ maintainers.sternenseemann maintainers.abbe ]; platforms = platforms.linux; - # From (presumably) ncurses version 6.3, it will ship a foot - # terminfo file. This however won't include some non-standard - # capabilities foot's bundled terminfo file contains. Unless we - # want to have some features in e. g. vim or tmux stop working, - # we need to make sure that the foot terminfo overwrites ncurses' - # one. Due to <nixpkgs/nixos/modules/config/system-path.nix> - # ncurses is always added to environment.systemPackages on - # NixOS with its priority increased by 3, so we need to go - # one bigger. - # This doesn't matter a lot for local use since foot sets - # TERMINFO to a store path, but allows installing foot.terminfo - # on remote systems for proper foot terminfo support. - priority = (ncurses.meta.priority or 5) + 3 + 1; mainProgram = "foot"; }; } |