nixpkgs: patch mautrix-telegram
References: https://github.com/mautrix/telegram/pull/991
This commit is contained in:
parent
06c6e1ce5a
commit
0f462a2813
|
@ -8,6 +8,11 @@ let
|
||||||
inputs.nixpkgs-terraform-providers-bin.overlay
|
inputs.nixpkgs-terraform-providers-bin.overlay
|
||||||
|
|
||||||
(_final: prev: {
|
(_final: prev: {
|
||||||
|
mautrix-telegram = prev.mautrix-telegram.overrideAttrs (old: {
|
||||||
|
patches = (old.patches or [ ]) ++ [
|
||||||
|
../patches/mautrix-telegram-sticker.patch
|
||||||
|
];
|
||||||
|
});
|
||||||
libadwaita = prev.libadwaita.overrideAttrs (old: {
|
libadwaita = prev.libadwaita.overrideAttrs (old: {
|
||||||
patches = (old.patches or [ ]) ++ [
|
patches = (old.patches or [ ]) ++ [
|
||||||
../patches/libadwaita-without-adwaita-theme.patch
|
../patches/libadwaita-without-adwaita-theme.patch
|
||||||
|
|
24
patches/mautrix-telegram-sticker.patch
Normal file
24
patches/mautrix-telegram-sticker.patch
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
diff --git a/mautrix_telegram/util/webm_converter.py b/mautrix_telegram/util/webm_converter.py
|
||||||
|
index 6ba4eed0..33d04514 100644
|
||||||
|
--- a/mautrix_telegram/util/webm_converter.py
|
||||||
|
+++ b/mautrix_telegram/util/webm_converter.py
|
||||||
|
@@ -26,13 +26,17 @@
|
||||||
|
|
||||||
|
converter_args = {
|
||||||
|
"gif": {
|
||||||
|
+ "input_args": ("-c:v", "libvpx-vp9"),
|
||||||
|
"output_args": ("-vf", "split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse"),
|
||||||
|
},
|
||||||
|
"png": {
|
||||||
|
- "input_args": ("-ss", "0"),
|
||||||
|
+ "input_args": ("-c:v", "libvpx-vp9", "-ss", "0"),
|
||||||
|
"output_args": ("-frames:v", "1"),
|
||||||
|
},
|
||||||
|
- "webp": {},
|
||||||
|
+ "webp": {
|
||||||
|
+ "input_args": ("-c:v", "libvpx-vp9"),
|
||||||
|
+ "output_args": ("-loop", "0"),
|
||||||
|
+ },
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue