From fdf5f474626e3d9f148cf6c8a6957dfad3104d06 Mon Sep 17 00:00:00 2001 From: h7x4 Date: Fri, 13 Dec 2024 22:03:56 +0100 Subject: [PATCH] flake.nix: overlay bleeding edge mpd --- flake.nix | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/flake.nix b/flake.nix index 302e9cc..a67dcd0 100644 --- a/flake.nix +++ b/flake.nix @@ -101,6 +101,31 @@ }; in [ (import ./overlays/wayland-ime-integration.nix) + + (final: prev: { + mpd = prev.mpd.overrideAttrs (prev': { + version = "v0.23.16-unstable"; + src = final.fetchFromGitHub { + owner = "MusicPlayerDaemon"; + repo = "MPD"; + rev = "b6e187efd8520ca9e3541e630559246c893cc304"; + hash = "sha256-EGpBiH/Sp7xgcSpj/zKgFqDfjdr2djveC+qV57imr3E="; + }; + + postPatch = prev'.postPatch + '' + substituteInPlace src/lib/yajl/Handle.hxx \ + --replace-fail '' '' + substituteInPlace src/lib/yajl/Callbacks.hxx \ + --replace-fail '' '' + substituteInPlace src/lib/yajl/Gen.hxx \ + --replace-fail '' '' + ''; + + nativeBuildInputs = prev'.nativeBuildInputs ++ [ + final.python3Packages.sphinx-rtd-theme + ]; + }); + }) ]; };