mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
navidromePlugins.listenbrainz-daily-playlist: init at 5.0.2
This commit is contained in:
@@ -46,6 +46,7 @@ in
|
||||
description = "List of Navidrome plugins";
|
||||
example = literalExpression ''
|
||||
with pkgs.navidromePlugins; [
|
||||
listenbrainz-daily-playlist
|
||||
];
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -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)
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user