diff options
author | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2021-03-10 12:41:09 +0100 |
---|---|---|
committer | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2021-03-10 20:32:24 +0100 |
commit | 4392bac9971a2af238fb547e96a89161da21cdfc (patch) | |
tree | ac496d6fc3287a69a8f1b20600dd859b897278b2 /pkgs/applications/video/jellyfin-mpv-shim | |
parent | 474043fc5b36b72613f9b8412e66069ee78b4308 (diff) |
jellyfin-mpv-shim: replace disable-update-check.patch with substituteInPlace
Diffstat (limited to 'pkgs/applications/video/jellyfin-mpv-shim')
-rw-r--r-- | pkgs/applications/video/jellyfin-mpv-shim/default.nix | 7 | ||||
-rw-r--r-- | pkgs/applications/video/jellyfin-mpv-shim/disable-update-check.patch | 15 |
2 files changed, 6 insertions, 16 deletions
diff --git a/pkgs/applications/video/jellyfin-mpv-shim/default.nix b/pkgs/applications/video/jellyfin-mpv-shim/default.nix index 6b0001ad74a2f..e25f74c2dc97c 100644 --- a/pkgs/applications/video/jellyfin-mpv-shim/default.nix +++ b/pkgs/applications/video/jellyfin-mpv-shim/default.nix @@ -13,7 +13,6 @@ buildPythonApplication rec { patches = [ ./disable-desktop-client.patch - ./disable-update-check.patch ]; # override $HOME directory: @@ -27,6 +26,12 @@ buildPythonApplication rec { rm jellyfin_mpv_shim/win_utils.py ''; + postPatch = '' + substituteInPlace jellyfin_mpv_shim/conf.py \ + --replace "check_updates: bool = True" "check_updates: bool = False" \ + --replace "notify_updates: bool = True" "notify_updates: bool = False" + ''; + propagatedBuildInputs = [ jellyfin-apiclient-python mpv diff --git a/pkgs/applications/video/jellyfin-mpv-shim/disable-update-check.patch b/pkgs/applications/video/jellyfin-mpv-shim/disable-update-check.patch deleted file mode 100644 index 6941b956e854c..0000000000000 --- a/pkgs/applications/video/jellyfin-mpv-shim/disable-update-check.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/jellyfin_mpv_shim/conf.py b/jellyfin_mpv_shim/conf.py -index 0ab9326..ccedc17 100644 ---- a/jellyfin_mpv_shim/conf.py -+++ b/jellyfin_mpv_shim/conf.py -@@ -88,8 +88,8 @@ class Settings(object): - "sync_revert_seek": True, - "sync_osd_message": True, - "screenshot_menu": True, -- "check_updates": True, -- "notify_updates": True, -+ "check_updates": False, -+ "notify_updates": False, - "lang": None, - "desktop_scale": 1.0, - } |