aboutsummaryrefslogtreecommitdiff
path: root/flakes/mypackages/pkgs/umami/build-geo.patch
blob: 7a4f07569eff12552e6d8c468effce21f1a799ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/scripts/build-geo.js b/scripts/build-geo.js
index cc66f94..5464b54 100644
--- a/scripts/build-geo.js
+++ b/scripts/build-geo.js
@@ -22,9 +22,7 @@ if (!fs.existsSync(dest)) {
 
 const download = url =>
   new Promise(resolve => {
-    https.get(url, res => {
-      resolve(res.pipe(zlib.createGunzip({})).pipe(tar.t()));
-    });
+    resolve(fs.createReadStream(url).pipe(zlib.createGunzip({})).pipe(tar.t()));
   });
 
 download(url).then(