wip
This commit is contained in:
parent
c21b2e1358
commit
4c2f85ad62
8 changed files with 285 additions and 65 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue