Skip to content

Commit 657b2f8

Browse files
authored
dmlive: rollback ffmpeg and add mime desktop (#384589)
2 parents fb0448a + 06309a1 commit 657b2f8

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

pkgs/by-name/dm/dmlive/package.nix

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,22 @@
22
lib,
33
rustPlatform,
44
fetchFromGitHub,
5+
fetchurl,
56
pkg-config,
67
makeWrapper,
78
openssl,
89
mpv,
9-
ffmpeg,
10+
ffmpeg_6,
1011
nodejs,
1112
}:
1213

14+
let
15+
desktop = fetchurl {
16+
url = "https://github.com/THMonster/Revda/raw/e1c236f6f940443419b6202735b6f8a0c9cdbe8b/misc/dmlive-mime.desktop";
17+
hash = "sha256-k4h0cSfjuTZAYLjbaTfcye1aC5obd6D3tAZjgBV8xCI=";
18+
};
19+
in
20+
1321
rustPlatform.buildRustPackage {
1422
pname = "dmlive";
1523
version = "5.5.7-unstable-2025-01-25";
@@ -37,10 +45,11 @@ rustPlatform.buildRustPackage {
3745
wrapProgram "$out/bin/dmlive" --suffix PATH : "${
3846
lib.makeBinPath [
3947
mpv
40-
ffmpeg
48+
ffmpeg_6
4149
nodejs
4250
]
4351
}"
52+
install -Dm644 ${desktop} $out/share/applications/dmlive-mime.desktop
4453
'';
4554

4655
env.OPENSSL_NO_VENDOR = true;

0 commit comments

Comments
 (0)