vimPlugins.moveline-nvim: move to separate folder (#366713)

authored by Gaétan Lepage and committed by GitHub e83f1d29 019d66fe

+412 -34
+362
pkgs/applications/editors/vim/plugins/moveline-nvim/Cargo.lock
···
··· 1 + # This file is automatically @generated by Cargo. 2 + # It is not intended for manual editing. 3 + version = 3 4 + 5 + [[package]] 6 + name = "autocfg" 7 + version = "1.4.0" 8 + source = "registry+https://github.com/rust-lang/crates.io-index" 9 + checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26" 10 + 11 + [[package]] 12 + name = "bitflags" 13 + version = "2.6.0" 14 + source = "registry+https://github.com/rust-lang/crates.io-index" 15 + checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" 16 + 17 + [[package]] 18 + name = "bstr" 19 + version = "0.2.17" 20 + source = "registry+https://github.com/rust-lang/crates.io-index" 21 + checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223" 22 + dependencies = [ 23 + "memchr", 24 + ] 25 + 26 + [[package]] 27 + name = "cc" 28 + version = "1.2.5" 29 + source = "registry+https://github.com/rust-lang/crates.io-index" 30 + checksum = "c31a0499c1dc64f458ad13872de75c0eb7e3fdb0e67964610c914b034fc5956e" 31 + dependencies = [ 32 + "shlex", 33 + ] 34 + 35 + [[package]] 36 + name = "either" 37 + version = "1.13.0" 38 + source = "registry+https://github.com/rust-lang/crates.io-index" 39 + checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" 40 + 41 + [[package]] 42 + name = "erased-serde" 43 + version = "0.3.31" 44 + source = "registry+https://github.com/rust-lang/crates.io-index" 45 + checksum = "6c138974f9d5e7fe373eb04df7cae98833802ae4b11c24ac7039a21d5af4b26c" 46 + dependencies = [ 47 + "serde", 48 + ] 49 + 50 + [[package]] 51 + name = "errno" 52 + version = "0.3.10" 53 + source = "registry+https://github.com/rust-lang/crates.io-index" 54 + checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" 55 + dependencies = [ 56 + "libc", 57 + "windows-sys", 58 + ] 59 + 60 + [[package]] 61 + name = "home" 62 + version = "0.5.11" 63 + source = "registry+https://github.com/rust-lang/crates.io-index" 64 + checksum = "589533453244b0995c858700322199b2becb13b627df2851f64a2775d024abcf" 65 + dependencies = [ 66 + "windows-sys", 67 + ] 68 + 69 + [[package]] 70 + name = "libc" 71 + version = "0.2.169" 72 + source = "registry+https://github.com/rust-lang/crates.io-index" 73 + checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a" 74 + 75 + [[package]] 76 + name = "linux-raw-sys" 77 + version = "0.4.14" 78 + source = "registry+https://github.com/rust-lang/crates.io-index" 79 + checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" 80 + 81 + [[package]] 82 + name = "lua-src" 83 + version = "546.0.2" 84 + source = "registry+https://github.com/rust-lang/crates.io-index" 85 + checksum = "2da0daa7eee611a4c30c8f5ee31af55266e26e573971ba9336d2993e2da129b2" 86 + dependencies = [ 87 + "cc", 88 + ] 89 + 90 + [[package]] 91 + name = "luajit-src" 92 + version = "210.4.8+resty107baaf" 93 + source = "registry+https://github.com/rust-lang/crates.io-index" 94 + checksum = "e05167e8b2a2185758d83ed23541e5bd8bce37072e4204e0ef2c9b322bc87c4e" 95 + dependencies = [ 96 + "cc", 97 + "which", 98 + ] 99 + 100 + [[package]] 101 + name = "memchr" 102 + version = "2.7.4" 103 + source = "registry+https://github.com/rust-lang/crates.io-index" 104 + checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" 105 + 106 + [[package]] 107 + name = "mlua" 108 + version = "0.8.10" 109 + source = "registry+https://github.com/rust-lang/crates.io-index" 110 + checksum = "0bb37b0ba91f017aa7ca2b98ef99496827770cd635b4a932a6047c5b4bbe678e" 111 + dependencies = [ 112 + "bstr", 113 + "cc", 114 + "erased-serde", 115 + "lua-src", 116 + "luajit-src", 117 + "mlua_derive", 118 + "num-traits", 119 + "once_cell", 120 + "pkg-config", 121 + "rustc-hash", 122 + "serde", 123 + ] 124 + 125 + [[package]] 126 + name = "mlua_derive" 127 + version = "0.8.0" 128 + source = "registry+https://github.com/rust-lang/crates.io-index" 129 + checksum = "b9214e60d3cf1643013b107330fcd374ccec1e4ba1eef76e7e5da5e8202e71c0" 130 + dependencies = [ 131 + "proc-macro2", 132 + "quote", 133 + "syn 1.0.109", 134 + ] 135 + 136 + [[package]] 137 + name = "moveline" 138 + version = "0.3.1" 139 + dependencies = [ 140 + "mlua", 141 + "nvim-utils", 142 + ] 143 + 144 + [[package]] 145 + name = "num-traits" 146 + version = "0.2.19" 147 + source = "registry+https://github.com/rust-lang/crates.io-index" 148 + checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" 149 + dependencies = [ 150 + "autocfg", 151 + ] 152 + 153 + [[package]] 154 + name = "nvim-utils" 155 + version = "0.1.12" 156 + source = "registry+https://github.com/rust-lang/crates.io-index" 157 + checksum = "5a9a92389a7a9f1352c8e4f739f854d09430e5b13007a22ad71bb68cea656031" 158 + dependencies = [ 159 + "mlua", 160 + "nvim-utils-macros", 161 + "serde", 162 + ] 163 + 164 + [[package]] 165 + name = "nvim-utils-macros" 166 + version = "0.1.1" 167 + source = "registry+https://github.com/rust-lang/crates.io-index" 168 + checksum = "786ceed33fafdafb3933d708ddbb669eb41949b8d52c58e13fb5ec5b815da06a" 169 + dependencies = [ 170 + "mlua", 171 + "proc-macro2", 172 + "quote", 173 + "syn 1.0.109", 174 + ] 175 + 176 + [[package]] 177 + name = "once_cell" 178 + version = "1.20.2" 179 + source = "registry+https://github.com/rust-lang/crates.io-index" 180 + checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" 181 + 182 + [[package]] 183 + name = "pkg-config" 184 + version = "0.3.31" 185 + source = "registry+https://github.com/rust-lang/crates.io-index" 186 + checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2" 187 + 188 + [[package]] 189 + name = "proc-macro2" 190 + version = "1.0.92" 191 + source = "registry+https://github.com/rust-lang/crates.io-index" 192 + checksum = "37d3544b3f2748c54e147655edb5025752e2303145b5aefb3c3ea2c78b973bb0" 193 + dependencies = [ 194 + "unicode-ident", 195 + ] 196 + 197 + [[package]] 198 + name = "quote" 199 + version = "1.0.37" 200 + source = "registry+https://github.com/rust-lang/crates.io-index" 201 + checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af" 202 + dependencies = [ 203 + "proc-macro2", 204 + ] 205 + 206 + [[package]] 207 + name = "rustc-hash" 208 + version = "1.1.0" 209 + source = "registry+https://github.com/rust-lang/crates.io-index" 210 + checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" 211 + 212 + [[package]] 213 + name = "rustix" 214 + version = "0.38.42" 215 + source = "registry+https://github.com/rust-lang/crates.io-index" 216 + checksum = "f93dc38ecbab2eb790ff964bb77fa94faf256fd3e73285fd7ba0903b76bedb85" 217 + dependencies = [ 218 + "bitflags", 219 + "errno", 220 + "libc", 221 + "linux-raw-sys", 222 + "windows-sys", 223 + ] 224 + 225 + [[package]] 226 + name = "serde" 227 + version = "1.0.216" 228 + source = "registry+https://github.com/rust-lang/crates.io-index" 229 + checksum = "0b9781016e935a97e8beecf0c933758c97a5520d32930e460142b4cd80c6338e" 230 + dependencies = [ 231 + "serde_derive", 232 + ] 233 + 234 + [[package]] 235 + name = "serde_derive" 236 + version = "1.0.216" 237 + source = "registry+https://github.com/rust-lang/crates.io-index" 238 + checksum = "46f859dbbf73865c6627ed570e78961cd3ac92407a2d117204c49232485da55e" 239 + dependencies = [ 240 + "proc-macro2", 241 + "quote", 242 + "syn 2.0.90", 243 + ] 244 + 245 + [[package]] 246 + name = "shlex" 247 + version = "1.3.0" 248 + source = "registry+https://github.com/rust-lang/crates.io-index" 249 + checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" 250 + 251 + [[package]] 252 + name = "syn" 253 + version = "1.0.109" 254 + source = "registry+https://github.com/rust-lang/crates.io-index" 255 + checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" 256 + dependencies = [ 257 + "proc-macro2", 258 + "quote", 259 + "unicode-ident", 260 + ] 261 + 262 + [[package]] 263 + name = "syn" 264 + version = "2.0.90" 265 + source = "registry+https://github.com/rust-lang/crates.io-index" 266 + checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" 267 + dependencies = [ 268 + "proc-macro2", 269 + "quote", 270 + "unicode-ident", 271 + ] 272 + 273 + [[package]] 274 + name = "unicode-ident" 275 + version = "1.0.14" 276 + source = "registry+https://github.com/rust-lang/crates.io-index" 277 + checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" 278 + 279 + [[package]] 280 + name = "which" 281 + version = "4.4.2" 282 + source = "registry+https://github.com/rust-lang/crates.io-index" 283 + checksum = "87ba24419a2078cd2b0f2ede2691b6c66d8e47836da3b6db8265ebad47afbfc7" 284 + dependencies = [ 285 + "either", 286 + "home", 287 + "once_cell", 288 + "rustix", 289 + ] 290 + 291 + [[package]] 292 + name = "windows-sys" 293 + version = "0.59.0" 294 + source = "registry+https://github.com/rust-lang/crates.io-index" 295 + checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" 296 + dependencies = [ 297 + "windows-targets", 298 + ] 299 + 300 + [[package]] 301 + name = "windows-targets" 302 + version = "0.52.6" 303 + source = "registry+https://github.com/rust-lang/crates.io-index" 304 + checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" 305 + dependencies = [ 306 + "windows_aarch64_gnullvm", 307 + "windows_aarch64_msvc", 308 + "windows_i686_gnu", 309 + "windows_i686_gnullvm", 310 + "windows_i686_msvc", 311 + "windows_x86_64_gnu", 312 + "windows_x86_64_gnullvm", 313 + "windows_x86_64_msvc", 314 + ] 315 + 316 + [[package]] 317 + name = "windows_aarch64_gnullvm" 318 + version = "0.52.6" 319 + source = "registry+https://github.com/rust-lang/crates.io-index" 320 + checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" 321 + 322 + [[package]] 323 + name = "windows_aarch64_msvc" 324 + version = "0.52.6" 325 + source = "registry+https://github.com/rust-lang/crates.io-index" 326 + checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" 327 + 328 + [[package]] 329 + name = "windows_i686_gnu" 330 + version = "0.52.6" 331 + source = "registry+https://github.com/rust-lang/crates.io-index" 332 + checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" 333 + 334 + [[package]] 335 + name = "windows_i686_gnullvm" 336 + version = "0.52.6" 337 + source = "registry+https://github.com/rust-lang/crates.io-index" 338 + checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" 339 + 340 + [[package]] 341 + name = "windows_i686_msvc" 342 + version = "0.52.6" 343 + source = "registry+https://github.com/rust-lang/crates.io-index" 344 + checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" 345 + 346 + [[package]] 347 + name = "windows_x86_64_gnu" 348 + version = "0.52.6" 349 + source = "registry+https://github.com/rust-lang/crates.io-index" 350 + checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" 351 + 352 + [[package]] 353 + name = "windows_x86_64_gnullvm" 354 + version = "0.52.6" 355 + source = "registry+https://github.com/rust-lang/crates.io-index" 356 + checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" 357 + 358 + [[package]] 359 + name = "windows_x86_64_msvc" 360 + version = "0.52.6" 361 + source = "registry+https://github.com/rust-lang/crates.io-index" 362 + checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+49
pkgs/applications/editors/vim/plugins/moveline-nvim/default.nix
···
··· 1 + { 2 + lib, 3 + fetchFromGitHub, 4 + rustPlatform, 5 + vimUtils, 6 + }: 7 + let 8 + version = "0.3.1-unstable-2023-07-06"; 9 + src = fetchFromGitHub { 10 + owner = "willothy"; 11 + repo = "moveline.nvim"; 12 + rev = "570603637be8af20e97b91cf554fef29cab73ca6"; 13 + hash = "sha256-hq/n48JC1EgJbmb6b/1jQ8MNhbcsJD3wIYaKE1UiU30="; 14 + }; 15 + moveline-lib = rustPlatform.buildRustPackage { 16 + inherit src version; 17 + pname = "moveline-lib"; 18 + 19 + # Upstream doesn't contain a cargo lock 20 + cargoLock = { 21 + lockFile = ./Cargo.lock; 22 + }; 23 + 24 + postPatch = '' 25 + ln -s ${./Cargo.lock} Cargo.lock 26 + ''; 27 + }; 28 + in 29 + vimUtils.buildVimPlugin { 30 + inherit src version; 31 + pname = "moveline-nvim"; 32 + 33 + preInstall = '' 34 + mkdir -p lua 35 + ln -s ${moveline-lib}/lib/libmoveline.so lua/moveline.so 36 + ''; 37 + 38 + nvimRequireCheck = "moveline"; 39 + 40 + meta = { 41 + description = "Neovim plugin for moving lines up and down"; 42 + homepage = "https://github.com/willothy/moveline.nvim"; 43 + license = lib.licenses.mit; 44 + maintainers = with lib.maintainers; [ redxtech ]; 45 + badPlatforms = [ 46 + lib.systems.inspect.patterns.isDarwin 47 + ]; 48 + }; 49 + }
+1 -34
pkgs/applications/editors/vim/plugins/overrides.nix
··· 1760 ]; 1761 }; 1762 1763 - moveline-nvim = 1764 - let 1765 - version = "2024-07-25"; 1766 - src = fetchFromGitHub { 1767 - owner = "willothy"; 1768 - repo = "moveline.nvim"; 1769 - rev = "9f67f4b9e752a87eea8205f0279f261a16c733d8"; 1770 - sha256 = "sha256-B4t5+Q4Urx5bGm8glNpYkHhpp/rAhz+lDd2EpWFUYoY="; 1771 - }; 1772 - moveline-lib = rustPlatform.buildRustPackage { 1773 - inherit src version; 1774 - pname = "moveline-lib"; 1775 - cargoHash = "sha256-e9QB4Rfm+tFNrLAHN/nYUQ5PiTET8knQQIQkMH3UFkU="; 1776 - }; 1777 - in 1778 - buildVimPlugin { 1779 - inherit src version; 1780 - pname = "moveline-nvim"; 1781 - preInstall = '' 1782 - mkdir -p lua 1783 - ln -s ${moveline-lib}/lib/libmoveline.so lua/moveline.so 1784 - ''; 1785 - meta = { 1786 - description = "Neovim plugin for moving lines up and down"; 1787 - homepage = "https://github.com/willothy/moveline.nvim"; 1788 - license = lib.licenses.mit; 1789 - maintainers = with lib.maintainers; [ redxtech ]; 1790 - badPlatforms = [ 1791 - "aarch64-darwin" 1792 - "x86_64-darwin" 1793 - ]; 1794 - }; 1795 - nvimRequireCheck = "moveline"; 1796 - }; 1797 1798 multicursors-nvim = super.multicursors-nvim.overrideAttrs { 1799 dependencies = with self; [
··· 1760 ]; 1761 }; 1762 1763 + moveline-nvim = callPackage ./moveline-nvim { }; 1764 1765 multicursors-nvim = super.multicursors-nvim.overrideAttrs { 1766 dependencies = with self; [