This commit is contained in:
Jonas Rabenstein 2025-11-28 23:14:08 +01:00
commit 4c2f85ad62
8 changed files with 285 additions and 65 deletions

View file

@ -7,19 +7,26 @@ let
hash = "sha256-pPhMmH17RKktIX16ozSxsigxo6tU8tlST4IAm3vpjrw=";
rev = "v10";
};
current =
lib:
lib.lists.fold (acc: v: if lib.strings.versionOlder acc v then v else acc) "0.0.0" (
builtins.attrNames v
);
in
{
lib,
version ? current lib,
hash ? v.${version}.hash,
rev ? v.${version}.rev or "v${version}",
...
}:
{
inherit version hash rev;
}
dlna = {
lib,
buildJellyfinPlugin,
fetchJellyfinPlugin,
...
}@args: let
version = args.version or "10.0.0.0";
hash = args.hash or v.${version}.hash or "";
rev = args.rev or v.${version}.rev or "v${lib.versions.major version}";
extra = lib.attrsets.removeAttrs args (builtins.attrNames (lib.functionArgs dlna));
plain = buildJellyfinPlugin {
name = "dlna";
inherit version;
src = fetchJellyfinPlugin {
name = "dlna";
inherit hash rev;
};
nugetDeps = ./deps.json;
};
in plain.override extra;
in dlna