Skip to content

Commit 0f462a2

Browse files
committed
nixpkgs: patch mautrix-telegram
References: mautrix/telegram#991
1 parent 06c6e1c commit 0f462a2

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

flake/nixpkgs.nix

+5
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ let
88
inputs.nixpkgs-terraform-providers-bin.overlay
99

1010
(_final: prev: {
11+
mautrix-telegram = prev.mautrix-telegram.overrideAttrs (old: {
12+
patches = (old.patches or [ ]) ++ [
13+
../patches/mautrix-telegram-sticker.patch
14+
];
15+
});
1116
libadwaita = prev.libadwaita.overrideAttrs (old: {
1217
patches = (old.patches or [ ]) ++ [
1318
../patches/libadwaita-without-adwaita-theme.patch
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff --git a/mautrix_telegram/util/webm_converter.py b/mautrix_telegram/util/webm_converter.py
2+
index 6ba4eed0..33d04514 100644
3+
--- a/mautrix_telegram/util/webm_converter.py
4+
+++ b/mautrix_telegram/util/webm_converter.py
5+
@@ -26,13 +26,17 @@
6+
7+
converter_args = {
8+
"gif": {
9+
+ "input_args": ("-c:v", "libvpx-vp9"),
10+
"output_args": ("-vf", "split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse"),
11+
},
12+
"png": {
13+
- "input_args": ("-ss", "0"),
14+
+ "input_args": ("-c:v", "libvpx-vp9", "-ss", "0"),
15+
"output_args": ("-frames:v", "1"),
16+
},
17+
- "webp": {},
18+
+ "webp": {
19+
+ "input_args": ("-c:v", "libvpx-vp9"),
20+
+ "output_args": ("-loop", "0"),
21+
+ },
22+
}
23+
24+

0 commit comments

Comments
 (0)