diff options
Diffstat (limited to 'flakes/mypackages/pkgs/umami/build-geo.patch')
-rw-r--r-- | flakes/mypackages/pkgs/umami/build-geo.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/flakes/mypackages/pkgs/umami/build-geo.patch b/flakes/mypackages/pkgs/umami/build-geo.patch new file mode 100644 index 0000000..7a4f075 --- /dev/null +++ b/flakes/mypackages/pkgs/umami/build-geo.patch | |||
@@ -0,0 +1,15 @@ | |||
1 | diff --git a/scripts/build-geo.js b/scripts/build-geo.js | ||
2 | index cc66f94..5464b54 100644 | ||
3 | --- a/scripts/build-geo.js | ||
4 | +++ b/scripts/build-geo.js | ||
5 | @@ -22,9 +22,7 @@ if (!fs.existsSync(dest)) { | ||
6 | |||
7 | const download = url => | ||
8 | new Promise(resolve => { | ||
9 | - https.get(url, res => { | ||
10 | - resolve(res.pipe(zlib.createGunzip({})).pipe(tar.t())); | ||
11 | - }); | ||
12 | + resolve(fs.createReadStream(url).pipe(zlib.createGunzip({})).pipe(tar.t())); | ||
13 | }); | ||
14 | |||
15 | download(url).then( | ||