wip
This commit is contained in:
parent
4c2f85ad62
commit
794925acb2
15 changed files with 516 additions and 529 deletions
35
package/fetchJellyfinPlugin/package.nix
Normal file
35
package/fetchJellyfinPlugin/package.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
newScope,
|
||||
}@args:
|
||||
let
|
||||
fetchJellyfinPlugin = (lib.makeScope newScope (_: args)).callPackage package;
|
||||
|
||||
package =
|
||||
{
|
||||
name,
|
||||
fetchFromGitHub,
|
||||
...
|
||||
}@args:
|
||||
let
|
||||
self = fetchJellyfinPlugin args;
|
||||
|
||||
extraArgs = lib.attrsets.removeAttrs args (builtins.attrNames (lib.functionArgs package));
|
||||
owner = args.owner or "jellyfin";
|
||||
repo = args.repo or "jellyfin-plugin-${args.name}";
|
||||
name = builtins.concatStringsSep "-" (
|
||||
[ repo ] ++ lib.optional (args ? version) args.version ++ [ "source" ]
|
||||
);
|
||||
|
||||
in
|
||||
fetchFromGitHub (
|
||||
{
|
||||
inherit owner repo name;
|
||||
passthru.override = self.override;
|
||||
}
|
||||
// extraArgs
|
||||
);
|
||||
|
||||
in
|
||||
fetchJellyfinPlugin
|
||||
Loading…
Add table
Add a link
Reference in a new issue