rework layout
This commit is contained in:
parent
4e2263c590
commit
b00c6aae55
8 changed files with 283 additions and 207 deletions
37
package/jprm/default.nix
Normal file
37
package/jprm/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
let
|
||||
v."1.1.1" = "sha256-PWgZ9K81RX+AboU8/6IGEQ8Fv/e8d2I1KH3+jIQOyj4=";
|
||||
current =
|
||||
lib:
|
||||
lib.lists.fold (acc: v: if lib.strings.versionOlder acc v then v else acc) "0.0.0" (
|
||||
builtins.attrNames v
|
||||
);
|
||||
in
|
||||
{
|
||||
version ? current lib,
|
||||
hash ? v.${version} or "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
|
||||
|
||||
lib,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
...
|
||||
}:
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "jprm";
|
||||
version = version;
|
||||
src = fetchFromGitHub {
|
||||
owner = "oddstr13";
|
||||
repo = "jellyfin-plugin-repository-manager";
|
||||
tag = "v${version}";
|
||||
hash = hash;
|
||||
};
|
||||
|
||||
build-system = with python3Packages; [ setuptools ];
|
||||
pyproject = true;
|
||||
|
||||
dependencies = with python3Packages; [
|
||||
click-log
|
||||
python-slugify
|
||||
pyyaml
|
||||
tabulate
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue