add some stuff

This commit is contained in:
Kopatz
2024-10-27 23:20:14 +01:00
parent 782ecdbf84
commit 465159200b
4 changed files with 27 additions and 1 deletions

View File

@@ -87,6 +87,7 @@ in {
logseq # notes
xarchiver # archive tool
ani-cli
mangal
];
};
}

View File

@@ -95,6 +95,12 @@ in {
${mangal} inline -S Mangapill --query "revenge_of_the_iron_blooded" --manga first --download
${mangal} inline -S Mangapill --query "northern_blade" --manga first --download
${mangal} inline -S Mangapill --query "Dungeon_reset" --manga first --download
${mangal} inline -S Mangapill --query "iruma-kun" --manga first --download
${mangal} inline -S Manganato --query "grand_blue" --manga first --download
${mangal} inline -S Manganato --query "sss-class_suicide" --manga first --download
${mangal} inline -S Manganato --query "cultivation_chat" --manga first --download
${mangal} inline -S Manganato --query "gokushufudo" --manga first --download
${mangal} inline -S Manganato --query "slime" --manga first --download
'';
serviceConfig = {
PrivateTmp = true;

View File

@@ -1,5 +1,10 @@
# This file defines overlays
{ inputs, ... }: {
{ inputs, ... }:
let
addPatches = pkg: patches:
pkg.overrideAttrs
(oldAttrs: { patches = (oldAttrs.patches or [ ]) ++ patches; });
in {
# This one brings our custom packages from the 'pkgs' directory
additions = final: _prev: import ./pkgs { pkgs = final; };
@@ -39,6 +44,7 @@
# example = prev.example.overrideAttrs (oldAttrs: rec {
# ...
# });
mangal = addPatches prev.mangal [ ./pkgs/patches/mangal.diff ];
};
# When applied, the unstable nixpkgs set (declared in the flake inputs) will

13
pkgs/patches/mangal.diff Normal file
View File

@@ -0,0 +1,13 @@
diff --git a/provider/manganato/manganato.go b/provider/manganato/manganato.go
index e7d0c62..7af6542 100644
--- a/provider/manganato/manganato.go
+++ b/provider/manganato/manganato.go
@@ -20,7 +20,7 @@ var Config = &generic.Configuration{
query = strings.TrimSpace(query)
query = strings.ToLower(query)
query = url.QueryEscape(query)
- template := "https://chapmanganato.com/https://manganato.com/search/story/%s"
+ template := "https://manganato.com/search/story/%s"
return fmt.Sprintf(template, query)
},
MangaExtractor: &generic.Extractor{