bencodepy migrated to flake

This commit is contained in:
Danilo Reyes 2024-12-15 01:29:20 -06:00
parent 97c27d2703
commit c798603dfe

View File

@ -1,23 +1,12 @@
{
inputs,
lib,
config,
pkgs,
...
}:
let
bencodepy = pkgs.python3Packages.buildPythonPackage {
pname = "bencodepy";
version = "0.9.5";
pyproject = true;
src = pkgs.fetchFromGitHub {
owner = "eweast";
repo = "bencodepy";
rev = "a9c145bd087c61dd8fb28a9dfad46d085c8b8290";
hash = "sha256-ISiMNTrA4J8NYUQSmdVFaro1RxkSqvXhz6LpoSn/fLQ=";
fetchSubmodules = true;
};
build-system = [ pkgs.python3Packages.setuptools ];
};
bencodepy = inputs.jawz-scripts.packages.x86_64-linux.bencodepy;
qbit_manage_env = pkgs.python3.withPackages (
ps:
builtins.attrValues {
@ -38,6 +27,7 @@ let
in
{
options.my.servers = {
unpackerr.enable = lib.mkEnableOption "enable";
qbittorrent = {
enable = lib.mkEnableOption "enable";
port = lib.mkOption {
@ -46,7 +36,6 @@ in
description = "The port to access qbittorrent web-ui";
};
};
unpackerr.enable = lib.mkEnableOption "enable";
};
config = lib.mkIf config.my.servers.qbittorrent.enable {
home-manager.users.jawz.xdg.configFile."unpackerr.conf" =