From a46bb0e0cca1accb972e1fe2770d4e6291f429df Mon Sep 17 00:00:00 2001 From: coolneng Date: Thu, 14 Jan 2021 00:01:48 +0100 Subject: [PATCH] Create an overlay to upgrade mopidy-youtube to 3.2 --- modules/audio.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/modules/audio.nix b/modules/audio.nix index 6f4a3a8..8266204 100644 --- a/modules/audio.nix +++ b/modules/audio.nix @@ -4,6 +4,16 @@ let soundcloud_token = builtins.readFile /home/coolneng/.config/mopidy/soundcloud-auth; + latest-mopidy-youtube = pkgs.mopidy-youtube.overrideAttrs (old: rec { + pname = "mopidy-youtube"; + version = "3.2"; + + src = pkgs.python3Packages.fetchPypi { + inherit version; + pname = "Mopidy-YouTube"; + sha256 = "0wmalfqnskglssq3gj6kkrq6h6c9yab503y72afhkm7n9r5c57zz"; + }; + }); in { # Enable ALSA sound.enable = true; @@ -23,7 +33,7 @@ in { extensionPackages = with pkgs; [ mopidy-mpd mopidy-soundcloud - mopidy-youtube + latest-mopidy-youtube mopidy-somafm mopidy-local ];