about summary refs log tree commit diff
path: root/users/multi/pkgs/htop/default.nix
blob: 09fc1cd9928fac68c39ebfbfecc01c07dd379413 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ pkgs, ... }:

let
  arcStats = [
    ./zfs-arc-stats/0001-Specify-correct-MIB-length.patch
    ./zfs-arc-stats/0002-Support-ZFS-ARC-stats-on-FreeBSD.patch
    ./zfs-arc-stats/0003-ZFS-arcstats-for-Linux.patch
    ./zfs-arc-stats/0004-ZFS-arcstats-for-Darwin-macOS-OS-X.patch
    ./zfs-arc-stats/0005-Refactor-common-OpenZFS-sysctl-access.patch
    ./zfs-arc-stats/0006-ZFS-arcstats-for-Solaris.patch
    ./zfs-arc-stats/0007-Refactor-openzfs_sysctl_init-and-ZfsArcMeter.patch
    ./zfs-arc-stats/0008-Support-for-ZFS-Compressed-ARC-statistics.patch
    ./zfs-arc-stats/0009-Linux-fixes.patch
  ];

  arcCache = [
    ./zfs-arc-cache/0001-Linux-consider-ZFS-ARC-to-be-cache.patch
  ];

  removeMousing = [
    ./remove-mousing/0001-Tear-out-ncurses-mouse-mode.patch
  ];

  octoMeter = [
    ./octo-meter/0001-Add-quad-and-octo-meter-display-meters.patch
  ];
in
  with pkgs; htop.overrideAttrs
    ({ patches ? [], nativeBuildInputs ? [], ... }:
      {
        patches = patches ++ arcStats ++ arcCache ++ removeMousing ++ octoMeter;
        nativeBuildInputs = nativeBuildInputs ++ [ autoreconfHook ];
      })