navidromePlugins.listenbrainz-daily-playlist: init at 5.0.2

This commit is contained in:
Chris Moultrie
2026-04-15 09:16:25 -04:00
parent 68e6fb9603
commit 57a56c30e0
3 changed files with 32 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ in
description = "List of Navidrome plugins";
example = literalExpression ''
with pkgs.navidromePlugins; [
listenbrainz-daily-playlist
];
'';
};

View File

@@ -7,11 +7,17 @@
{
services.navidrome = {
enable = true;
plugins = with pkgs.navidromePlugins; [
listenbrainz-daily-playlist
];
};
};
testScript = ''
machine.wait_for_unit("navidrome")
machine.wait_for_console_text("Starting plugin manager")
# Make sure we saw at least one plugin load
machine.wait_for_console_text("plugin=listenbrainz-daily-playlist")
machine.wait_for_open_port(4533)
'';
}

View File

@@ -0,0 +1,25 @@
{
lib,
pkgs,
buildNavidromePlugin,
}:
buildNavidromePlugin rec {
pname = "listenbrainz-daily-playlist";
version = "5.0.2";
src = pkgs.fetchFromGitHub {
owner = "kgarner7";
repo = "navidrome-listenbrainz-daily-playlist";
tag = "v${version}";
hash = "sha256-DsbnTu+Xi9pAG9fKgtlixxrd3od41TTeZ1hdjyEyGnk=";
};
vendorHash = "sha256-zCKLwS85+aC4jfRcC2SjKGK/OYjW+izIhKKKLxNroQg=";
meta = {
description = "fetch daily/weekly playlists from ListenBrainz";
homepage = "https://github.com/kgarner7/navidrome-listenbrainz-daily-playlist";
license = lib.licenses.mit;
sourceProvenance = with lib.sourceTypes; [ fromSource ];
};
}