forked from c3d2/nix-config
audio-server: fix ledfx with noXlibs
This commit is contained in:
parent
00000704ef
commit
4242bf60e6
|
@ -102,13 +102,24 @@ in
|
||||||
|
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
|
ledfx = prev.ledfx.overrideAttrs ({ postPatch ? "", ... }: {
|
||||||
|
postPatch = postPatch + ''
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace '"pystray>=0.17",' ""
|
||||||
|
'';
|
||||||
|
});
|
||||||
|
|
||||||
python3 = prev.python3.override {
|
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
|
# avoid dependency on x11 libraries
|
||||||
samplerate = python-prev.samplerate.overrideAttrs (_: {
|
samplerate = python-prev.samplerate.overrideAttrs (_: {
|
||||||
dontUseSetuptoolsCheck = true;
|
dontUseSetuptoolsCheck = true;
|
||||||
});
|
});
|
||||||
};
|
});
|
||||||
};
|
};
|
||||||
python3Packages = final.python3.pkgs;
|
python3Packages = final.python3.pkgs;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue