Merge pull request #120329 from onsails/tabnine

This commit is contained in:
Sandro 2021-04-24 03:04:31 +02:00 committed by GitHub
commit 551ed846bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,19 +1,19 @@
{ stdenv, lib, fetchurl, unzip }: { stdenv, lib, fetchurl, unzip }:
let let
version = "3.3.101"; version = "3.3.115";
src = src =
if stdenv.hostPlatform.system == "x86_64-darwin" then if stdenv.hostPlatform.system == "x86_64-darwin" then
fetchurl fetchurl
{ {
url = "https://update.tabnine.com/bundles/${version}/x86_64-apple-darwin/TabNine.zip"; url = "https://update.tabnine.com/bundles/${version}/x86_64-apple-darwin/TabNine.zip";
sha256 = "KrFDQSs7hMCioeqPKTNODe3RKnwNV8XafdYDUaxou/Y="; sha256 = "104h3b9cvmz2m27a94cfc00xm8wa2p1pvrfs92hrz59hcs8vdldf";
} }
else if stdenv.hostPlatform.system == "x86_64-linux" then else if stdenv.hostPlatform.system == "x86_64-linux" then
fetchurl fetchurl
{ {
url = "https://update.tabnine.com/bundles/${version}/x86_64-unknown-linux-musl/TabNine.zip"; url = "https://update.tabnine.com/bundles/${version}/x86_64-unknown-linux-musl/TabNine.zip";
sha256 = "vbeuZf/phOj83xTha+AzpKIvvrjwMar7q2teAmr5ESQ="; sha256 = "0rs2vmdz8c9zs53pjbzy27ir0p5v752cpsnqfaqf0ilx7k6fpnnm";
} }
else throw "Not supported on ${stdenv.hostPlatform.system}"; else throw "Not supported on ${stdenv.hostPlatform.system}";
in in
@ -32,6 +32,9 @@ stdenv.mkDerivation rec {
installPhase = '' installPhase = ''
install -Dm755 TabNine $out/bin/TabNine install -Dm755 TabNine $out/bin/TabNine
install -Dm755 TabNine-deep-cloud $out/bin/TabNine-deep-cloud
install -Dm755 TabNine-deep-local $out/bin/TabNine-deep-local
install -Dm755 WD-TabNine $out/bin/WD-TabNine
''; '';
meta = with lib; { meta = with lib; {