aboutsummaryrefslogtreecommitdiff
path: root/overlays/patches/htop/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/patches/htop/default.nix')
-rw-r--r--overlays/patches/htop/default.nix19
1 files changed, 19 insertions, 0 deletions
diff --git a/overlays/patches/htop/default.nix b/overlays/patches/htop/default.nix
new file mode 100644
index 00000000000..2b785545da8
--- /dev/null
+++ b/overlays/patches/htop/default.nix
@@ -0,0 +1,19 @@
+/* HTOP CUSTOM COLUMN LENGTHS
+ *
+ * My nick (spacekookie) is too long to be displayed
+ * in an htop column. This custom patches fixes this
+ *
+ * (<3)
+ */
+{ pkgs, ... }:
+
+pkgs.htop.overrideAttrs ({ src, patches ? [], nativeBuildInputs ? [], ... }: {
+ src = pkgs.fetchFromGitHub {
+ repo = "htop";
+ owner = "hishamhm";
+ rev = "402e46bb82964366746b86d77eb5afa69c279539";
+ sha256 = "0akyspxl80h2kgp6nhbhnz9v5265pi6d57i6l90pf50l92z61sw7";
+ };
+ nativeBuildInputs = nativeBuildInputs ++ [ pkgs.autoreconfHook ];
+ patches = patches ++ [ ./0001-htop-untruncated-username.patch ];
+})