about summary refs log tree commit diff stats
path: root/pkgs/by-name/i3/i3status-rust-patched/package.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/i3/i3status-rust-patched/package.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/by-name/i3/i3status-rust-patched/package.nix b/pkgs/by-name/i3/i3status-rust-patched/package.nix
new file mode 100644
index 00000000..1d0a42bc
--- /dev/null
+++ b/pkgs/by-name/i3/i3status-rust-patched/package.nix
@@ -0,0 +1,27 @@
+# nixos-config - My current NixOS configuration
+#
+# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de>
+# SPDX-License-Identifier: GPL-3.0-or-later
+#
+# This file is part of my nixos-config.
+#
+# You should have received a copy of the License along with this program.
+# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
+{
+  i3status-rust,
+  fetchpatch2,
+}:
+i3status-rust.overrideAttrs (final: prev: {
+  pname = "${prev.pname}-patched";
+
+  patches =
+    (prev.patches or [])
+    ++ [
+      # Btrfs support for disk_space block.
+      ./patches/0001-disk_space-Support-btrfs-backend.patch
+
+      # Correctly calculate the used memory.
+      ./patches/0002-memory-Directly-convert-reported-memory-usage-into-b.patch
+      ./patches/0003-memory-Avoid-estimating-available-memory-use-kernel-.patch
+    ];
+})