Skip to content

Commit eab1ad3

Browse files
committed
feat(nix): add local tecosaur.latex-utilities
1 parent 8349828 commit eab1ad3

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

extensions/default.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ in
2929
rust-lang.rust-analyzer = callPackage ./rust-lang/rust-analyzer/latest;
3030

3131
sumneko.lua = callPackage ./sumneko/lua/latest;
32+
33+
tecosaur.latex-utilities = callPackage ./tecosaur/latex-utilities/latest;
3234

3335
vadimcn.vscode-lldb =
3436
config@{ mktplcRef, ... }:
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Original implementation: https://github.com/NixOS/nixpkgs/blob/1e76ade8ef2a87d0484312f69aefa3fdad3d022d/pkgs/applications/editors/vscode/extensions/tecosaur.latex-utilities/default.nix
2+
{
3+
lib,
4+
jq,
5+
moreutils,
6+
texlivePackages,
7+
vscode-utils,
8+
9+
mktplcRef,
10+
vsix,
11+
...
12+
}:
13+
14+
vscode-utils.buildVscodeMarketplaceExtension rec {
15+
inherit mktplcRef vsix;
16+
17+
nativeBuildInputs = [
18+
jq
19+
moreutils
20+
];
21+
22+
buildInputs = [ texlivePackages.texcount ];
23+
24+
postInstall = ''
25+
cd "$out/$installPrefix"
26+
echo -n ${mktplcRef.version} > VERSION
27+
jq '.contributes.configuration.properties."latex-utilities.countWord.path".default = "${texlivePackages.texcount}/bin/texcount"' package.json | sponge package.json
28+
'';
29+
30+
meta = {
31+
description = "Add-on to the Visual Studio Code extension LaTeX Workshop";
32+
downloadPage = "https://marketplace.visualstudio.com/items?itemName=tecosaur.latex-utilities";
33+
homepage = "https://github.com/tecosaur/LaTeX-Utilities";
34+
changelog = "https://marketplace.visualstudio.com/items/tecosaur.latex-utilities/changelog";
35+
license = lib.licenses.mit;
36+
maintainers = with lib.maintainers; [ jeancaspar ];
37+
};
38+
}

0 commit comments

Comments
 (0)