Make the things better
Use transmission, which is not broken Bump supposed version of zim meta package Provide better passing of arguments to updater
This commit is contained in:
+2
-2
@@ -16,7 +16,7 @@ let
|
|||||||
fetchtorrent {
|
fetchtorrent {
|
||||||
inherit (val) hash;
|
inherit (val) hash;
|
||||||
url = "https://download.kiwix.org/zim/${type}/${val.name}.torrent";
|
url = "https://download.kiwix.org/zim/${type}/${val.name}.torrent";
|
||||||
backend = "rqbit";
|
backend = "transmission";
|
||||||
postUnpack = "ls -lR";
|
postUnpack = "ls -lR";
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -40,7 +40,7 @@ let
|
|||||||
in
|
in
|
||||||
stdenvNoCC.mkDerivation {
|
stdenvNoCC.mkDerivation {
|
||||||
name = "zims";
|
name = "zims";
|
||||||
version = "2024-10";
|
version = "2025-10";
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
inherit zims rawZims;
|
inherit zims rawZims;
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ func getHash(ch chan result, file, category, language string) {
|
|||||||
"--option",
|
"--option",
|
||||||
"extra-experimental-features",
|
"extra-experimental-features",
|
||||||
"flakes",
|
"flakes",
|
||||||
|
"--check-store",
|
||||||
fmt.Sprintf(`fetchtorrent {
|
fmt.Sprintf(`fetchtorrent {
|
||||||
url="%s/%s/%s.torrent";
|
url="%s/%s/%s.torrent";
|
||||||
hash="sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
hash="sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
|
||||||
@@ -147,6 +148,8 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Println("Writing file to ", outputPath)
|
||||||
|
|
||||||
// Read existing cache if it exists
|
// Read existing cache if it exists
|
||||||
cached := make(map[string]map[string]Zim)
|
cached := make(map[string]map[string]Zim)
|
||||||
if data, err := os.ReadFile(outputPath); err == nil {
|
if data, err := os.ReadFile(outputPath); err == nil {
|
||||||
@@ -221,4 +224,5 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Successfully wrote output to %s\n", outputPath)
|
fmt.Printf("Successfully wrote output to %s\n", outputPath)
|
||||||
|
fmt.Println(string(ret))
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ writeShellApplication {
|
|||||||
nix-prefetch
|
nix-prefetch
|
||||||
];
|
];
|
||||||
text = ''
|
text = ''
|
||||||
go run ${goscript} -- pkgs/zim/blobs.json
|
go build -o updater ${goscript}
|
||||||
|
./updater "$@"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user