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