Merge pull request #73087 from MetaDark/texlab

texlab: init at 1.6.0
This commit is contained in:
Mario Rodas 2019-11-13 08:14:38 -05:00 committed by GitHub
commit 854f51b2fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 2833 additions and 1311 deletions

View file

@ -15,6 +15,7 @@
, "bower2nix"
, "browserify"
, "castnow"
, { "texlab-citeproc-build-deps": "../tools/misc/texlab/citeproc" }
, "clean-css"
, "coffee-script"
, "coinmon"

File diff suppressed because it is too large Load diff

View file

@ -697,13 +697,13 @@ let
sha1 = "5eff8e3e684d569ae4cb2b1282604e8ba62149fa";
};
};
"glob-7.1.5" = {
"glob-7.1.6" = {
name = "glob";
packageName = "glob";
version = "7.1.5";
version = "7.1.6";
src = fetchurl {
url = "https://registry.npmjs.org/glob/-/glob-7.1.5.tgz";
sha512 = "J9dlskqUXK1OeTOYBEn5s8aMukWMwWfs+rPTn/jn50Ux4MNXVhubL1wu/j2t+H4NVI+cXEcCaYellqaPVGXNqQ==";
url = "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz";
sha512 = "LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==";
};
};
"global-modules-1.0.0" = {
@ -2651,7 +2651,7 @@ in
sources."fs.realpath-1.0.0"
sources."gauge-2.7.4"
sources."getpass-0.1.7"
sources."glob-7.1.5"
sources."glob-7.1.6"
sources."graceful-fs-4.2.3"
sources."har-schema-2.0.0"
sources."har-validator-5.1.3"

View file

@ -391,13 +391,13 @@ let
sha1 = "5eff8e3e684d569ae4cb2b1282604e8ba62149fa";
};
};
"glob-7.1.5" = {
"glob-7.1.6" = {
name = "glob";
packageName = "glob";
version = "7.1.5";
version = "7.1.6";
src = fetchurl {
url = "https://registry.npmjs.org/glob/-/glob-7.1.5.tgz";
sha512 = "J9dlskqUXK1OeTOYBEn5s8aMukWMwWfs+rPTn/jn50Ux4MNXVhubL1wu/j2t+H4NVI+cXEcCaYellqaPVGXNqQ==";
url = "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz";
sha512 = "LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==";
};
};
"graceful-fs-4.2.3" = {
@ -1319,7 +1319,7 @@ in
sources."fs.realpath-1.0.0"
sources."gauge-2.7.4"
sources."getpass-0.1.7"
sources."glob-7.1.5"
sources."glob-7.1.6"
sources."graceful-fs-4.2.3"
sources."har-schema-2.0.0"
sources."har-validator-5.1.3"

View file

@ -0,0 +1,31 @@
{
"name": "citeproc",
"version": "0.1.0",
"description": "Render BibTeX citations",
"repository": "https://github.com/latex-lsp/citeproc.git",
"author": "Eric Förster <efoerster@users.noreply.github.com>",
"license": "MIT",
"scripts": {
"dist": "webpack",
"format": "prettier --write \"src/**/*.{js,json}\" \"*.{js,json,yml,md}\" \".vscode/**/*.{json}\""
},
"dependencies": {
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@citation-js/core": "^0.4.8",
"@citation-js/plugin-bibtex": "^0.4.8",
"@citation-js/plugin-csl": "^0.4.8",
"@types/node": "^11.13.17",
"@types/webpack": "^4.4.35",
"babel-loader": "^8.0.6",
"babel-polyfill": "^6.26.0",
"null-loader": "^0.1.1",
"prettier": "^1.18.2",
"ts-loader": "^5.4.5",
"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"tslint-config-prettier": "^1.15.0",
"webpack": "^4.35.3",
"webpack-cli": "^3.3.6"
}
}

View file

@ -0,0 +1,14 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash -p jq
set -eu -o pipefail
if [ "$#" -ne 1 ] || [[ "$1" == -* ]]; then
echo "Usage: $0 <git release tag>"
exit 1
fi
TEXLAB_WEB_SRC="https://raw.githubusercontent.com/latex-lsp/texlab/$1"
curl --silent "$TEXLAB_WEB_SRC/src/citeproc/js/package.json" | \
jq '. + {"dependencies": .devDependencies} | del(.devDependencies)' > package.json

View file

@ -0,0 +1,39 @@
{ stdenv
, rustPlatform
, fetchFromGitHub
, nodejs
, Security
, texlab-citeproc-build-deps
}:
rustPlatform.buildRustPackage rec {
pname = "texlab";
version = "1.6.0";
src = fetchFromGitHub {
owner = "latex-lsp";
repo = pname;
rev = "v${version}";
sha256 = "115f63fij0lxcccf7ba9p0lzg1hlfp9i2g7gvvnx0il426h4ynnm";
};
cargoSha256 = "0cp8q3qags01s6v3kbghxyzz1hc5rhq6jf15fzz10d1l8mrmw4cy";
nativeBuildInputs = [ nodejs ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
preBuild = ''
rm build.rs
ln -s ${texlab-citeproc-build-deps}/lib/node_modules/citeproc/node_modules src/citeproc/js
(cd src/citeproc/js && npm run dist)
'';
meta = with stdenv.lib; {
description = "An implementation of the Language Server Protocol for LaTeX";
homepage = https://texlab.netlify.com/;
license = licenses.mit;
maintainers = with maintainers; [ doronbehar metadark ];
platforms = platforms.all;
};
}

View file

@ -10424,6 +10424,11 @@ in
texi2mdoc = callPackage ../tools/misc/texi2mdoc { };
texlab = callPackage ../development/tools/misc/texlab {
inherit (darwin.apple_sdk.frameworks) Security;
texlab-citeproc-build-deps = nodePackages."texlab-citeproc-build-deps-../tools/misc/texlab/citeproc";
};
tflint = callPackage ../development/tools/analysis/tflint { };
todoist = callPackage ../applications/misc/todoist { };