From 32d21ca63098186e9c54df2b104ab809d2750848 Mon Sep 17 00:00:00 2001 From: "Matthieu C." <886074+teto@users.noreply.github.com> Date: Fri, 3 May 2024 23:52:26 +0200 Subject: neovim-unwrapped: move to pkgs/by name --- pkgs/applications/editors/neovim/default.nix | 209 --------------------- .../editors/neovim/system_rplugin_manifest.patch | 29 --- .../editors/neovim/treesitter-parsers.nix | 24 --- .../editors/neovim/update-treesitter-parsers.py | 46 ----- 4 files changed, 308 deletions(-) delete mode 100644 pkgs/applications/editors/neovim/default.nix delete mode 100644 pkgs/applications/editors/neovim/system_rplugin_manifest.patch delete mode 100644 pkgs/applications/editors/neovim/treesitter-parsers.nix delete mode 100755 pkgs/applications/editors/neovim/update-treesitter-parsers.py (limited to 'pkgs/applications/editors') diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix deleted file mode 100644 index b29e020cbf612..0000000000000 --- a/pkgs/applications/editors/neovim/default.nix +++ /dev/null @@ -1,209 +0,0 @@ -{ lib, stdenv, fetchFromGitHub, removeReferencesTo, cmake, gettext, msgpack-c, libtermkey, libiconv -, libuv, lua, ncurses, pkg-config -, unibilium, gperf -, libvterm-neovim -, tree-sitter -, fetchurl -, buildPackages -, treesitter-parsers ? import ./treesitter-parsers.nix { inherit fetchurl; } -, CoreServices -, fixDarwinDylibNames -, glibcLocales ? null, procps ? null - -# now defaults to false because some tests can be flaky (clipboard etc), see -# also: https://github.com/neovim/neovim/issues/16233 -, nodejs ? null, fish ? null, python3 ? null -}: -stdenv.mkDerivation (finalAttrs: - let - nvim-lpeg-dylib = luapkgs: if stdenv.isDarwin - then (luapkgs.lpeg.overrideAttrs (oa: { - preConfigure = '' - # neovim wants clang .dylib - sed -i makefile -e "s/CC = gcc/CC = clang/" - sed -i makefile -e "s/-bundle/-dynamiclib/" - ''; - preBuild = '' - # there seems to be implicit calls to Makefile from luarocks, we need to - # add a stage to build our dylib - make macosx - mkdir -p $out/lib - mv lpeg.so $out/lib/lpeg.dylib - ''; - nativeBuildInputs = - oa.nativeBuildInputs - ++ ( - lib.optional stdenv.isDarwin fixDarwinDylibNames - ); - })) - else luapkgs.lpeg; - requiredLuaPkgs = ps: (with ps; [ - (nvim-lpeg-dylib ps) - luabitop - mpack - ] ++ lib.optionals finalAttrs.doCheck [ - luv - coxpcall - busted - luafilesystem - penlight - inspect - ] - ); - neovimLuaEnv = lua.withPackages requiredLuaPkgs; - neovimLuaEnvOnBuild = lua.luaOnBuild.withPackages requiredLuaPkgs; - codegenLua = - if lua.luaOnBuild.pkgs.isLuaJIT - then - let deterministicLuajit = - lua.luaOnBuild.override { - deterministicStringIds = true; - self = deterministicLuajit; - }; - in deterministicLuajit.withPackages(ps: [ ps.mpack (nvim-lpeg-dylib ps) ]) - else lua.luaOnBuild; - - -in { - pname = "neovim-unwrapped"; - version = "0.9.5"; - - __structuredAttrs = true; - - src = fetchFromGitHub { - owner = "neovim"; - repo = "neovim"; - rev = "v${finalAttrs.version}"; - hash = "sha256-CcaBqA0yFCffNPmXOJTo8c9v1jrEBiqAl8CG5Dj5YxE="; - }; - - patches = [ - # introduce a system-wide rplugin.vim in addition to the user one - # necessary so that nix can handle `UpdateRemotePlugins` for the plugins - # it installs. See https://github.com/neovim/neovim/issues/9413. - ./system_rplugin_manifest.patch - ]; - - dontFixCmake = true; - - inherit lua treesitter-parsers; - - buildInputs = [ - gperf - libtermkey - libuv - libvterm-neovim - # This is actually a c library, hence it's not included in neovimLuaEnv, - # see: - # https://github.com/luarocks/luarocks/issues/1402#issuecomment-1080616570 - # and it's definition at: pkgs/development/lua-modules/overrides.nix - lua.pkgs.libluv - msgpack-c - ncurses - neovimLuaEnv - tree-sitter - unibilium - ] ++ lib.optionals stdenv.isDarwin [ libiconv CoreServices ] - ++ lib.optionals finalAttrs.doCheck [ glibcLocales procps ] - ; - - doCheck = false; - - # to be exhaustive, one could run - # make oldtests too - checkPhase = '' - runHook preCheck - make functionaltest - runHook postCheck - ''; - - nativeBuildInputs = [ - cmake - gettext - pkg-config - removeReferencesTo - ]; - - # extra programs test via `make functionaltest` - nativeCheckInputs = let - pyEnv = python3.withPackages(ps: with ps; [ pynvim msgpack ]); - in [ - fish - nodejs - pyEnv # for src/clint.py - ]; - - # nvim --version output retains compilation flags and references to build tools - postPatch = '' - substituteInPlace src/nvim/version.c --replace NVIM_VERSION_CFLAGS ""; - '' + lib.optionalString (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' - sed -i runtime/CMakeLists.txt \ - -e "s|\".*/bin/nvim|\${stdenv.hostPlatform.emulator buildPackages} &|g" - sed -i src/nvim/po/CMakeLists.txt \ - -e "s|\$ Date: Sat, 4 May 2024 00:26:43 +0200 Subject: neovide: moved to pkgs/by-name --- .../editors/neovim/neovide/default.nix | 119 --------------------- .../editors/neovim/neovide/skia-externals.json | 37 ------- pkgs/by-name/ne/neovide/package.nix | 119 +++++++++++++++++++++ pkgs/by-name/ne/neovide/skia-externals.json | 37 +++++++ pkgs/top-level/all-packages.nix | 2 - 5 files changed, 156 insertions(+), 158 deletions(-) delete mode 100644 pkgs/applications/editors/neovim/neovide/default.nix delete mode 100644 pkgs/applications/editors/neovim/neovide/skia-externals.json create mode 100644 pkgs/by-name/ne/neovide/package.nix create mode 100644 pkgs/by-name/ne/neovide/skia-externals.json (limited to 'pkgs/applications/editors') diff --git a/pkgs/applications/editors/neovim/neovide/default.nix b/pkgs/applications/editors/neovim/neovide/default.nix deleted file mode 100644 index ce9b091add820..0000000000000 --- a/pkgs/applications/editors/neovim/neovide/default.nix +++ /dev/null @@ -1,119 +0,0 @@ -{ lib -, rustPlatform -, clangStdenv -, fetchFromGitHub -, linkFarm -, fetchgit -, runCommand -, gn -, neovim -, ninja -, makeWrapper -, pkg-config -, python3 -, removeReferencesTo -, xcbuild -, SDL2 -, fontconfig -, xorg -, stdenv -, darwin -, libglvnd -, libxkbcommon -, enableWayland ? stdenv.isLinux -, wayland -}: - -rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec { - pname = "neovide"; - version = "0.12.2"; - - src = fetchFromGitHub { - owner = "neovide"; - repo = "neovide"; - rev = version; - sha256 = "sha256-M19LKNjUmC0WkVGm4t7vjxgMMe0FdMTmB1mLcG33OUg="; - }; - - cargoHash = "sha256-2fPprZVT7V+Ot8aCpWj6WTdyFylmzlujFdTJCrtE0rk="; - - SKIA_SOURCE_DIR = - let - repo = fetchFromGitHub { - owner = "rust-skia"; - repo = "skia"; - # see rust-skia:skia-bindings/Cargo.toml#package.metadata skia - rev = "m119-0.67.3"; - sha256 = "sha256-U75NuJnQa5+SNlOrsBmdlvflGdjo3el63EeIsbnE7ms="; - }; - # The externals for skia are taken from skia/DEPS - externals = linkFarm "skia-externals" (lib.mapAttrsToList - (name: value: { inherit name; path = fetchgit value; }) - (lib.importJSON ./skia-externals.json)); - in - runCommand "source" { } '' - cp -R ${repo} $out - chmod -R +w $out - ln -s ${externals} $out/third_party/externals - '' - ; - - SKIA_GN_COMMAND = "${gn}/bin/gn"; - SKIA_NINJA_COMMAND = "${ninja}/bin/ninja"; - - nativeBuildInputs = [ - makeWrapper - pkg-config - python3 # skia - removeReferencesTo - ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; - - nativeCheckInputs = [ neovim ]; - - buildInputs = [ - SDL2 - fontconfig - rustPlatform.bindgenHook - ] ++ lib.optionals stdenv.isDarwin [ - darwin.apple_sdk.frameworks.AppKit - ]; - - postFixup = let - libPath = lib.makeLibraryPath ([ - libglvnd - libxkbcommon - xorg.libXcursor - xorg.libXext - xorg.libXrandr - xorg.libXi - ] ++ lib.optionals enableWayland [ wayland ]); - in '' - # library skia embeds the path to its sources - remove-references-to -t "$SKIA_SOURCE_DIR" \ - $out/bin/neovide - - wrapProgram $out/bin/neovide \ - --prefix LD_LIBRARY_PATH : ${libPath} - ''; - - postInstall = '' - for n in 16x16 32x32 48x48 256x256; do - install -m444 -D "assets/neovide-$n.png" \ - "$out/share/icons/hicolor/$n/apps/neovide.png" - done - install -m444 -Dt $out/share/icons/hicolor/scalable/apps assets/neovide.svg - install -m444 -Dt $out/share/applications assets/neovide.desktop - ''; - - disallowedReferences = [ SKIA_SOURCE_DIR ]; - - meta = with lib; { - description = "This is a simple graphical user interface for Neovim."; - mainProgram = "neovide"; - homepage = "https://github.com/neovide/neovide"; - changelog = "https://github.com/neovide/neovide/releases/tag/${version}"; - license = with licenses; [ mit ]; - maintainers = with maintainers; [ ck3d ]; - platforms = platforms.all; - }; -} diff --git a/pkgs/applications/editors/neovim/neovide/skia-externals.json b/pkgs/applications/editors/neovim/neovide/skia-externals.json deleted file mode 100644 index e57814e2a2d87..0000000000000 --- a/pkgs/applications/editors/neovim/neovide/skia-externals.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "expat": { - "url": "https://chromium.googlesource.com/external/github.com/libexpat/libexpat.git", - "rev": "441f98d02deafd9b090aea568282b28f66a50e36", - "sha256": "sha256-FXTDGAK03jc2wvazhRKqtsFRKZUYS/9HLpZNp4JfZJI=" - }, - "libjpeg-turbo": { - "url": "https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git", - "rev": "ed683925e4897a84b3bffc5c1414c85b97a129a3", - "sha256": "sha256-DYJP3phe4OzCtRN2pMc07ITTWR8MuIlOWWg9PBsQAVw=" - }, - "icu": { - "url": "https://chromium.googlesource.com/chromium/deps/icu.git", - "rev": "a0718d4f121727e30b8d52c7a189ebf5ab52421f", - "sha256": "sha256-BI3f/gf9GNDvSfXWeRHKBvznSz4mjXY8rM24kK7QvOM=" - }, - "zlib": { - "url": "https://chromium.googlesource.com/chromium/src/third_party/zlib", - "rev": "c876c8f87101c5a75f6014b0f832499afeb65b73", - "sha256": "sha256-mwozVo8ymyrYN4tw+/ZnSI+xogSTZQ6PUBba/jQqRkE=" - }, - "harfbuzz": { - "url": "https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git", - "rev": "4cfc6d8e173e800df086d7be078da2e8c5cfca19", - "sha256": "sha256-rrstyAz7Eb8ZgFJZKUASY8nU4YFZAptd5VS9B2cs2Yg=" - }, - "wuffs": { - "url": "https://skia.googlesource.com/external/github.com/google/wuffs-mirror-release-c.git", - "rev": "e3f919ccfe3ef542cfc983a82146070258fb57f8", - "sha256": "sha256-373d2F/STcgCHEq+PO+SCHrKVOo6uO1rqqwRN5eeBCw=" - }, - "libpng": { - "url": "https://skia.googlesource.com/third_party/libpng.git", - "rev": "386707c6d19b974ca2e3db7f5c61873813c6fe44", - "sha256": "sha256-67kf5MBsnBBi0bOfX/RKL52xpaCWm/ampltAI+EeQ+c=" - } -} diff --git a/pkgs/by-name/ne/neovide/package.nix b/pkgs/by-name/ne/neovide/package.nix new file mode 100644 index 0000000000000..ce9b091add820 --- /dev/null +++ b/pkgs/by-name/ne/neovide/package.nix @@ -0,0 +1,119 @@ +{ lib +, rustPlatform +, clangStdenv +, fetchFromGitHub +, linkFarm +, fetchgit +, runCommand +, gn +, neovim +, ninja +, makeWrapper +, pkg-config +, python3 +, removeReferencesTo +, xcbuild +, SDL2 +, fontconfig +, xorg +, stdenv +, darwin +, libglvnd +, libxkbcommon +, enableWayland ? stdenv.isLinux +, wayland +}: + +rustPlatform.buildRustPackage.override { stdenv = clangStdenv; } rec { + pname = "neovide"; + version = "0.12.2"; + + src = fetchFromGitHub { + owner = "neovide"; + repo = "neovide"; + rev = version; + sha256 = "sha256-M19LKNjUmC0WkVGm4t7vjxgMMe0FdMTmB1mLcG33OUg="; + }; + + cargoHash = "sha256-2fPprZVT7V+Ot8aCpWj6WTdyFylmzlujFdTJCrtE0rk="; + + SKIA_SOURCE_DIR = + let + repo = fetchFromGitHub { + owner = "rust-skia"; + repo = "skia"; + # see rust-skia:skia-bindings/Cargo.toml#package.metadata skia + rev = "m119-0.67.3"; + sha256 = "sha256-U75NuJnQa5+SNlOrsBmdlvflGdjo3el63EeIsbnE7ms="; + }; + # The externals for skia are taken from skia/DEPS + externals = linkFarm "skia-externals" (lib.mapAttrsToList + (name: value: { inherit name; path = fetchgit value; }) + (lib.importJSON ./skia-externals.json)); + in + runCommand "source" { } '' + cp -R ${repo} $out + chmod -R +w $out + ln -s ${externals} $out/third_party/externals + '' + ; + + SKIA_GN_COMMAND = "${gn}/bin/gn"; + SKIA_NINJA_COMMAND = "${ninja}/bin/ninja"; + + nativeBuildInputs = [ + makeWrapper + pkg-config + python3 # skia + removeReferencesTo + ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; + + nativeCheckInputs = [ neovim ]; + + buildInputs = [ + SDL2 + fontconfig + rustPlatform.bindgenHook + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.AppKit + ]; + + postFixup = let + libPath = lib.makeLibraryPath ([ + libglvnd + libxkbcommon + xorg.libXcursor + xorg.libXext + xorg.libXrandr + xorg.libXi + ] ++ lib.optionals enableWayland [ wayland ]); + in '' + # library skia embeds the path to its sources + remove-references-to -t "$SKIA_SOURCE_DIR" \ + $out/bin/neovide + + wrapProgram $out/bin/neovide \ + --prefix LD_LIBRARY_PATH : ${libPath} + ''; + + postInstall = '' + for n in 16x16 32x32 48x48 256x256; do + install -m444 -D "assets/neovide-$n.png" \ + "$out/share/icons/hicolor/$n/apps/neovide.png" + done + install -m444 -Dt $out/share/icons/hicolor/scalable/apps assets/neovide.svg + install -m444 -Dt $out/share/applications assets/neovide.desktop + ''; + + disallowedReferences = [ SKIA_SOURCE_DIR ]; + + meta = with lib; { + description = "This is a simple graphical user interface for Neovim."; + mainProgram = "neovide"; + homepage = "https://github.com/neovide/neovide"; + changelog = "https://github.com/neovide/neovide/releases/tag/${version}"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ ck3d ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/by-name/ne/neovide/skia-externals.json b/pkgs/by-name/ne/neovide/skia-externals.json new file mode 100644 index 0000000000000..e57814e2a2d87 --- /dev/null +++ b/pkgs/by-name/ne/neovide/skia-externals.json @@ -0,0 +1,37 @@ +{ + "expat": { + "url": "https://chromium.googlesource.com/external/github.com/libexpat/libexpat.git", + "rev": "441f98d02deafd9b090aea568282b28f66a50e36", + "sha256": "sha256-FXTDGAK03jc2wvazhRKqtsFRKZUYS/9HLpZNp4JfZJI=" + }, + "libjpeg-turbo": { + "url": "https://chromium.googlesource.com/chromium/deps/libjpeg_turbo.git", + "rev": "ed683925e4897a84b3bffc5c1414c85b97a129a3", + "sha256": "sha256-DYJP3phe4OzCtRN2pMc07ITTWR8MuIlOWWg9PBsQAVw=" + }, + "icu": { + "url": "https://chromium.googlesource.com/chromium/deps/icu.git", + "rev": "a0718d4f121727e30b8d52c7a189ebf5ab52421f", + "sha256": "sha256-BI3f/gf9GNDvSfXWeRHKBvznSz4mjXY8rM24kK7QvOM=" + }, + "zlib": { + "url": "https://chromium.googlesource.com/chromium/src/third_party/zlib", + "rev": "c876c8f87101c5a75f6014b0f832499afeb65b73", + "sha256": "sha256-mwozVo8ymyrYN4tw+/ZnSI+xogSTZQ6PUBba/jQqRkE=" + }, + "harfbuzz": { + "url": "https://chromium.googlesource.com/external/github.com/harfbuzz/harfbuzz.git", + "rev": "4cfc6d8e173e800df086d7be078da2e8c5cfca19", + "sha256": "sha256-rrstyAz7Eb8ZgFJZKUASY8nU4YFZAptd5VS9B2cs2Yg=" + }, + "wuffs": { + "url": "https://skia.googlesource.com/external/github.com/google/wuffs-mirror-release-c.git", + "rev": "e3f919ccfe3ef542cfc983a82146070258fb57f8", + "sha256": "sha256-373d2F/STcgCHEq+PO+SCHrKVOo6uO1rqqwRN5eeBCw=" + }, + "libpng": { + "url": "https://skia.googlesource.com/third_party/libpng.git", + "rev": "386707c6d19b974ca2e3db7f5c61873813c6fe44", + "sha256": "sha256-67kf5MBsnBBi0bOfX/RKL52xpaCWm/ampltAI+EeQ+c=" + } +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 293f130d0ce6d..811cd3bd1858d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35332,8 +35332,6 @@ with pkgs; gnvim = callPackage ../applications/editors/neovim/gnvim/wrapper.nix { }; - neovide = callPackage ../applications/editors/neovim/neovide { }; - neovim-remote = callPackage ../applications/editors/neovim/neovim-remote.nix { }; viw = callPackage ../applications/editors/viw { }; -- cgit 1.4.1 From c026e55e0f24e4bb224ef31877c08f3099b06ca9 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sat, 4 May 2024 20:48:43 +0200 Subject: vimPlugins.sniprun: 1.3.12 -> 1.3.13 Changelog: https://github.com/michaelb/sniprun/blob/master/CHANGELOG.md#v1313 --- pkgs/applications/editors/vim/plugins/overrides.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pkgs/applications/editors') diff --git a/pkgs/applications/editors/vim/plugins/overrides.nix b/pkgs/applications/editors/vim/plugins/overrides.nix index 0b17b14b7deae..79153066705bf 100644 --- a/pkgs/applications/editors/vim/plugins/overrides.nix +++ b/pkgs/applications/editors/vim/plugins/overrides.nix @@ -1240,12 +1240,12 @@ sniprun = let - version = "1.3.12"; + version = "1.3.13"; src = fetchFromGitHub { owner = "michaelb"; repo = "sniprun"; rev = "refs/tags/v${version}"; - hash = "sha256-siM0MBugee2OVaD1alr2hKn9ngoaV3Iy9No/F3wryJs="; + hash = "sha256-PQ3nAZ+bMbHHJWD7cV6h1b3g3TzrakA/N8vVumIooMg="; }; sniprun-bin = rustPlatform.buildRustPackage { pname = "sniprun-bin"; @@ -1255,7 +1255,7 @@ darwin.apple_sdk.frameworks.Security ]; - cargoHash = "sha256-Gnpv0vAU3kTtCKsV2XGlSbzYuHEqR7iDFeKj9Vhq1UQ="; + cargoHash = "sha256-I8R2V9zoLqiM4lu0D7URoVof68wtKHI+8T8fVrUg7i4="; nativeBuildInputs = [ makeWrapper ]; -- cgit 1.4.1 From e94ecdea5ac786fd0447c5b1c5fa8744d382db6d Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Sat, 4 May 2024 22:31:45 +0200 Subject: vscode-extensions.tekumara.typos-vscode: init at 0.1.18 --- .../editors/vscode/extensions/default.nix | 2 + .../extensions/tekumara.typos-vscode/default.nix | 64 ++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 pkgs/applications/editors/vscode/extensions/tekumara.typos-vscode/default.nix (limited to 'pkgs/applications/editors') diff --git a/pkgs/applications/editors/vscode/extensions/default.nix b/pkgs/applications/editors/vscode/extensions/default.nix index 27bce5cd2abfa..854eb94ad0a55 100644 --- a/pkgs/applications/editors/vscode/extensions/default.nix +++ b/pkgs/applications/editors/vscode/extensions/default.nix @@ -4094,6 +4094,8 @@ let }; }; + tekumara.typos-vscode = callPackage ./tekumara.typos-vscode { }; + theangryepicbanana.language-pascal = buildVscodeMarketplaceExtension { mktplcRef = { name = "language-pascal"; diff --git a/pkgs/applications/editors/vscode/extensions/tekumara.typos-vscode/default.nix b/pkgs/applications/editors/vscode/extensions/tekumara.typos-vscode/default.nix new file mode 100644 index 0000000000000..140a371efd456 --- /dev/null +++ b/pkgs/applications/editors/vscode/extensions/tekumara.typos-vscode/default.nix @@ -0,0 +1,64 @@ +{ + stdenv, + jq, + lib, + moreutils, + typos-lsp, + vscode-utils, +}: +let + inherit (stdenv.hostPlatform) system; + + extInfo = + { + x86_64-linux = { + arch = "linux-x64"; + hash = "sha256-CPUlJ1QzGiZKd4r46Iioc5svw0oLsMsYnc0KxT1p0zM="; + }; + aarch64-linux = { + arch = "linux-arm64"; + hash = "sha256-qSTCZHL7nfB300qwuqgl/4u+SYNMA2BFCrD+yQEgN/c="; + }; + x86_64-darwin = { + arch = "darwin-x64"; + hash = "sha256-FcZH2bB5B3wnu6F76kGp9FBdD3yZtr57TQ5xaUfRcmY="; + }; + aarch64-darwin = { + arch = "darwin-arm64"; + hash = "sha256-3HdK4x2WNdb9Zxqjtn9lmbgrMOzz14rH0ZF0x9B0BHY="; + }; + } + .${system} or (throw "Unsupported system: ${system}"); +in +vscode-utils.buildVscodeMarketplaceExtension { + mktplcRef = { + name = "typos-vscode"; + publisher = "tekumara"; + # Please update the corresponding binary (typos-lsp) + # when updating this extension. + # See pkgs/by-name/ty/typos-lsp/package.nix + version = "0.1.18"; + inherit (extInfo) hash arch; + }; + + nativeBuildInputs = [ + jq + moreutils + ]; + + buildInputs = [ typos-lsp ]; + + postInstall = '' + cd "$out/$installPrefix" + jq '.contributes.configuration.properties."typos.path".default = "${lib.getExe typos-lsp}"' package.json | sponge package.json + ''; + + meta = { + changelog = "https://marketplace.visualstudio.com/items/tekumara.typos-vscode/changelog"; + description = "A VSCode extension for providing a low false-positive source code spell checker"; + downloadPage = "https://marketplace.visualstudio.com/items?itemName=tekumara.typos-vscode"; + homepage = "https://github.com/tekumara/typos-lsp"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.drupol ]; + }; +} -- cgit 1.4.1