From db194f6e2a776b2cf170a1d5ae59aa849afe1a6c Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Thu, 23 May 2024 17:20:48 -0400 Subject: [PATCH] htop: backport sort order patch --- modules/cli/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/cli/default.nix b/modules/cli/default.nix index ac7494a..84ea0d9 100644 --- a/modules/cli/default.nix +++ b/modules/cli/default.nix @@ -87,6 +87,18 @@ tree_view = 1; update_process_names = 1; }; + package = pkgs.htop.overrideAttrs ( + { patches ? [ ], ... }: { + patches = patches ++ [ + # This patch fixes process sort order while in tree view. + # Started in 3.3.0. Should be fixed in 3.4.0. + (pkgs.fetchpatch { + url = "https://github.com/htop-dev/htop/commit/5d778eaacc78c69d5597b57afb4f98062d8856ef.patch"; + hash = "sha256-bjIYve2cAQNYKOYqQcVrw3aJs9ceanjfv0Y9yRwNlvg="; + }) + ]; + } + ); }; programs.git = {