diff options
author | Atemu <atemu.main@gmail.com> | 2024-02-20 09:46:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 09:46:49 +0100 |
commit | f8f6450852963e2030f99f18d617b4376d279805 (patch) | |
tree | 2c3f3fd780879b3108b976cd8834d6725408c330 /pkgs/applications/video | |
parent | 2e689831f10ddf9cbc46fcf53b9c87ec1b229e33 (diff) | |
parent | 06885ad43c2c1e82b8eebdd42a4bfeb6d01f194a (diff) |
Merge pull request #290009 from K900/mpv-smb
mpv: don't advertise smb protocol support that we don't have
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/mpv/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/video/mpv/default.nix b/pkgs/applications/video/mpv/default.nix index 01a875d667b7a..163729d879b9a 100644 --- a/pkgs/applications/video/mpv/default.nix +++ b/pkgs/applications/video/mpv/default.nix @@ -227,6 +227,10 @@ in stdenv'.mkDerivation (finalAttrs: { cp mpv_identify.sh umpv $out/bin/ popd pushd $out/share/applications + + # patch out smb protocol reference, since our ffmpeg can't handle it + substituteInPlace mpv.desktop --replace-fail "smb," "" + sed -e '/Icon=/ ! s|mpv|umpv|g; s|^Exec=.*|Exec=umpv %U|' \ mpv.desktop > umpv.desktop printf "NoDisplay=true\n" >> umpv.desktop |