From effc575846531e3c4493cfda2b784766717cae38 Mon Sep 17 00:00:00 2001 From: SqrtMinusOne Date: Sat, 19 Jun 2021 21:20:11 +0300 Subject: [PATCH] feat(texlab): add texlab --- README.org | 1 + texlab.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 texlab.scm diff --git a/README.org b/README.org index b4bda95..5905d09 100644 --- a/README.org +++ b/README.org @@ -12,6 +12,7 @@ I'll probably push what I can upstream when I figure Guix out. | [[https://github.com/SqrtMinusOne/mpd-watcher][mpd-watcher]] | OK | | | [[https://github.com/risacher/sunwait][sunwait]] | OK | Version number | | [[https://github.com/deajan/osync][osync]] | Works | Requires shell commands as propagated-inputs | +| [[https://github.com/latex-lsp/texlab/][texlab]] | Works | Installation from binaries | | [[https://github.com/tmux-python/tmuxp][tmuxp]] | Works | Tests fail | | [[https://starship.rs/][starship]] | Works | Tests fail | | [[https://github.com/gauteh/lieer][lieer]] | Works | Tests fail for dependencies | diff --git a/texlab.scm b/texlab.scm new file mode 100644 index 0000000..23490e7 --- /dev/null +++ b/texlab.scm @@ -0,0 +1,41 @@ +(define-module (texlab) + #:use-module (gnu packages compression) + #:use-module (gnu packages gcc) + #:use-module (guix download) + #:use-module (guix packages) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (nonguix build-system binary)) + +(define-public texlab + (package + (name "texlab-bin") + (version "3.2.0") + (source + (origin + (method url-fetch) + (uri (string-append + "https://github.com/latex-lsp/texlab/releases/download/v" + version + "/texlab-x86_64-linux.tar.gz")) + (sha256 + (base32 + "05wxf7w1kbapr81j0h23cdxvh71cz5bd2sprljxd629s6z33javw")))) + (build-system binary-build-system) + (arguments + `(#:install-plan + `(("texlab" "/bin/")) + #:patchelf-plan + `(("texlab" ("gcc:lib"))) + #:phases + (modify-phases %standard-phases + (replace 'unpack + (lambda* (#:key inputs #:allow-other-keys) + (invoke "tar" "-xvzf" (assoc-ref inputs "source"))))))) + (inputs + `(("gcc:lib" ,gcc "lib"))) + (native-inputs + `(("gzip" ,gzip))) + (synopsis "An implementation of the Language Server Protocol for LaTeX ") + (description "A cross-platform implementation of the Language Server Protocol providing rich cross-editing support for the LaTeX typesetting system. The server may be used with any editor that implements the Language Server Protocol.") + (home-page "https://texlab.netlify.app/") + (license license:gpl3)))