diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-06-06 23:35:46 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2021-06-06 23:35:46 +0200 |
commit | a565d58b53473c40fcb8b6e1e16b83906a76fbdd (patch) | |
tree | 516b5e3610c33e84ae0ea09f4808538eb15a539a /pkgs/umami/build-geo.patch | |
parent | 5be300c116687fb79d37c0a7733b8e4b2bcdf1a1 (diff) | |
download | Nix-a565d58b53473c40fcb8b6e1e16b83906a76fbdd.tar.gz Nix-a565d58b53473c40fcb8b6e1e16b83906a76fbdd.tar.zst Nix-a565d58b53473c40fcb8b6e1e16b83906a76fbdd.zip |
Add umami
Diffstat (limited to 'pkgs/umami/build-geo.patch')
-rw-r--r-- | pkgs/umami/build-geo.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/umami/build-geo.patch b/pkgs/umami/build-geo.patch new file mode 100644 index 0000000..7a4f075 --- /dev/null +++ b/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( | ||