3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #133197 from lovesegfault/tabnine-3.5.37

tabnine: 3.5.15 -> 3.5.37
This commit is contained in:
Bernardo Meurer 2021-08-08 23:20:03 +00:00 committed by GitHub
commit 133669c0ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +1,20 @@
{ stdenv, lib, fetchurl, unzip }:
let
version = "3.5.15";
# You can check the latest version with `curl -sS https://update.tabnine.com/bundles/version`
version = "3.5.37";
src =
if stdenv.hostPlatform.system == "x86_64-darwin" then
fetchurl
{
url = "https://update.tabnine.com/bundles/${version}/x86_64-apple-darwin/TabNine.zip";
sha256 = "sha256-JrDAF/3yPGJXwonWIvaKf0dw4GQf3U2wbf5iF4QUXco=";
sha256 = "sha256-Vxmhl4/bhRDeByGgkdSF8yEY5wI23WzT2iH1OFkEpck=";
}
else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl
{
url = "https://update.tabnine.com/bundles/${version}/x86_64-unknown-linux-musl/TabNine.zip";
sha256 = "sha256-fgVVJ+J4w+Z3Kmryixp844xlLFiRs5PSAcD/wrcXF1w=";
sha256 = "sha256-pttjlx7WWE3nog9L1APp8HN+a4ShhlBj5irHOaPgqHw=";
}
else throw "Not supported on ${stdenv.hostPlatform.system}";
in