add some stuff
This commit is contained in:
@@ -87,6 +87,7 @@ in {
|
|||||||
logseq # notes
|
logseq # notes
|
||||||
xarchiver # archive tool
|
xarchiver # archive tool
|
||||||
ani-cli
|
ani-cli
|
||||||
|
mangal
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,6 +95,12 @@ in {
|
|||||||
${mangal} inline -S Mangapill --query "revenge_of_the_iron_blooded" --manga first --download
|
${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 "northern_blade" --manga first --download
|
||||||
${mangal} inline -S Mangapill --query "Dungeon_reset" --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 = {
|
serviceConfig = {
|
||||||
PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
# This file defines overlays
|
# 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
|
# This one brings our custom packages from the 'pkgs' directory
|
||||||
additions = final: _prev: import ./pkgs { pkgs = final; };
|
additions = final: _prev: import ./pkgs { pkgs = final; };
|
||||||
|
|
||||||
@@ -39,6 +44,7 @@
|
|||||||
# example = prev.example.overrideAttrs (oldAttrs: rec {
|
# 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
|
# When applied, the unstable nixpkgs set (declared in the flake inputs) will
|
||||||
|
|||||||
13
pkgs/patches/mangal.diff
Normal file
13
pkgs/patches/mangal.diff
Normal 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{
|
||||||
Reference in New Issue
Block a user