1
0
Fork 0

audio-server: fix ledfx with noXlibs

This commit is contained in:
Sandro - 2023-05-24 00:41:57 +02:00
parent 00000704ef
commit 4242bf60e6
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 13 additions and 2 deletions

View File

@ -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;
})