diff --git a/modules/audio-server.nix b/modules/audio-server.nix index d07c4bb3..3f163fd1 100644 --- a/modules/audio-server.nix +++ b/modules/audio-server.nix @@ -102,13 +102,24 @@ in nixpkgs.overlays = [ (final: prev: { + ledfx = prev.ledfx.overrideAttrs ({ postPatch ? "", ... }: { + postPatch = postPatch + '' + substituteInPlace setup.py \ + --replace '"pystray>=0.17",' "" + ''; + }); + python3 = prev.python3.override { - packageOverrides = python-final: python-prev: { + packageOverrides = python-final: python-prev: + (lib.optionalAttrs config.environment.noXlibs { + # remove x11 dependencies from pkgs.ledfx + pystray = null; + } // { # avoid dependency on x11 libraries samplerate = python-prev.samplerate.overrideAttrs (_: { dontUseSetuptoolsCheck = true; }); - }; + }); }; python3Packages = final.python3.pkgs; })