evolution: Remove X dependency through libcanberra

This commit is contained in:
Mikael 2024-09-01 16:49:35 +02:00
parent 4a534407e5
commit c2cff0e123
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -57,6 +57,22 @@ in genAttrs [
zstdSupport = true;
};
evolution = prev.evolution.overrideAttrs (prevAttrs: {
buildInputs = prevAttrs.buildInputs or [ ]
|> removePackages [ "libcanberra" ];
cmakeFlags = prevAttrs.cmakeFlags or [ ]
++ [ "-DENABLE_CANBERRA:BOOL=OFF" ];
});
evolution-data-server = prev.evolution-data-server.overrideAttrs (prevAttrs: {
buildInputs = prevAttrs.buildInputs or [ ]
|> removePackages [ "libcanberra" ];
cmakeFlags = prevAttrs.cmakeFlags or [ ]
|> substituteFlags { "-DENABLE_CANBERRA[:=].*" = "-DENABLE_CANBERRA:BOOL=OFF"; };
});
ffmpeg = prev.ffmpeg.override {
ffmpegVariant = "headless";
withAlsa = false;