about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/beets/plugins/play/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--pkgs/by-name/i3/i3status-rust-patched/package.nix (renamed from modules/home.legacy/conf/beets/plugins/play/default.nix)23
1 files changed, 11 insertions, 12 deletions
diff --git a/modules/home.legacy/conf/beets/plugins/play/default.nix b/pkgs/by-name/i3/i3status-rust-patched/package.nix
index 9d26f16a..a103e275 100644
--- a/modules/home.legacy/conf/beets/plugins/play/default.nix
+++ b/pkgs/by-name/i3/i3status-rust-patched/package.nix
@@ -8,16 +8,15 @@
 # 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>.
 {
-  lib,
-  pkgs,
-  config,
-  ...
-}: {
-  programs.beets.settings.play = {
-    command = "${lib.getExe pkgs.mpc} $args add";
-    relative_to = config.services.mpd.musicDirectory;
+  i3status-rust,
+}:
+i3status-rust.overrideAttrs (final: prev: {
+  pname = "${prev.pname}-patched";
 
-    # Run the command with the returned paths as arguments
-    raw = true;
-  };
-}
+  patches =
+    (prev.patches or [])
+    ++ [
+      # Btrfs support for disk_space block.
+      ./patches/0001-disk_space-Support-btrfs-backend.patch
+    ];
+})