lol

sleek: init at 0.3.0

xrelkd f8c23378 645b5c41

+504
+470
pkgs/development/tools/database/sleek/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 = "anstream" 7 + version = "0.3.0" 8 + source = "registry+https://github.com/rust-lang/crates.io-index" 9 + checksum = "9e579a7752471abc2a8268df8b20005e3eadd975f585398f17efcfd8d4927371" 10 + dependencies = [ 11 + "anstyle", 12 + "anstyle-parse", 13 + "anstyle-query", 14 + "anstyle-wincon", 15 + "colorchoice", 16 + "is-terminal", 17 + "utf8parse", 18 + ] 19 + 20 + [[package]] 21 + name = "anstyle" 22 + version = "1.0.0" 23 + source = "registry+https://github.com/rust-lang/crates.io-index" 24 + checksum = "41ed9a86bf92ae6580e0a31281f65a1b1d867c0cc68d5346e2ae128dddfa6a7d" 25 + 26 + [[package]] 27 + name = "anstyle-parse" 28 + version = "0.2.0" 29 + source = "registry+https://github.com/rust-lang/crates.io-index" 30 + checksum = "e765fd216e48e067936442276d1d57399e37bce53c264d6fefbe298080cb57ee" 31 + dependencies = [ 32 + "utf8parse", 33 + ] 34 + 35 + [[package]] 36 + name = "anstyle-query" 37 + version = "1.0.0" 38 + source = "registry+https://github.com/rust-lang/crates.io-index" 39 + checksum = "5ca11d4be1bab0c8bc8734a9aa7bf4ee8316d462a08c6ac5052f888fef5b494b" 40 + dependencies = [ 41 + "windows-sys 0.48.0", 42 + ] 43 + 44 + [[package]] 45 + name = "anstyle-wincon" 46 + version = "1.0.0" 47 + source = "registry+https://github.com/rust-lang/crates.io-index" 48 + checksum = "4bcd8291a340dd8ac70e18878bc4501dd7b4ff970cfa21c207d36ece51ea88fd" 49 + dependencies = [ 50 + "anstyle", 51 + "windows-sys 0.48.0", 52 + ] 53 + 54 + [[package]] 55 + name = "bitflags" 56 + version = "1.3.2" 57 + source = "registry+https://github.com/rust-lang/crates.io-index" 58 + checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" 59 + 60 + [[package]] 61 + name = "cc" 62 + version = "1.0.79" 63 + source = "registry+https://github.com/rust-lang/crates.io-index" 64 + checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" 65 + 66 + [[package]] 67 + name = "clap" 68 + version = "4.3.0" 69 + source = "registry+https://github.com/rust-lang/crates.io-index" 70 + checksum = "93aae7a4192245f70fe75dd9157fc7b4a5bf53e88d30bd4396f7d8f9284d5acc" 71 + dependencies = [ 72 + "clap_builder", 73 + "clap_derive", 74 + "once_cell", 75 + ] 76 + 77 + [[package]] 78 + name = "clap_builder" 79 + version = "4.3.0" 80 + source = "registry+https://github.com/rust-lang/crates.io-index" 81 + checksum = "4f423e341edefb78c9caba2d9c7f7687d0e72e89df3ce3394554754393ac3990" 82 + dependencies = [ 83 + "anstream", 84 + "anstyle", 85 + "bitflags", 86 + "clap_lex", 87 + "once_cell", 88 + "strsim", 89 + ] 90 + 91 + [[package]] 92 + name = "clap_derive" 93 + version = "4.3.0" 94 + source = "registry+https://github.com/rust-lang/crates.io-index" 95 + checksum = "191d9573962933b4027f932c600cd252ce27a8ad5979418fe78e43c07996f27b" 96 + dependencies = [ 97 + "heck", 98 + "proc-macro2", 99 + "quote", 100 + "syn", 101 + ] 102 + 103 + [[package]] 104 + name = "clap_lex" 105 + version = "0.5.0" 106 + source = "registry+https://github.com/rust-lang/crates.io-index" 107 + checksum = "2da6da31387c7e4ef160ffab6d5e7f00c42626fe39aea70a7b0f1773f7dd6c1b" 108 + 109 + [[package]] 110 + name = "colorchoice" 111 + version = "1.0.0" 112 + source = "registry+https://github.com/rust-lang/crates.io-index" 113 + checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7" 114 + 115 + [[package]] 116 + name = "either" 117 + version = "1.8.1" 118 + source = "registry+https://github.com/rust-lang/crates.io-index" 119 + checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" 120 + 121 + [[package]] 122 + name = "errno" 123 + version = "0.3.0" 124 + source = "registry+https://github.com/rust-lang/crates.io-index" 125 + checksum = "50d6a0976c999d473fe89ad888d5a284e55366d9dc9038b1ba2aa15128c4afa0" 126 + dependencies = [ 127 + "errno-dragonfly", 128 + "libc", 129 + "windows-sys 0.45.0", 130 + ] 131 + 132 + [[package]] 133 + name = "errno-dragonfly" 134 + version = "0.1.2" 135 + source = "registry+https://github.com/rust-lang/crates.io-index" 136 + checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" 137 + dependencies = [ 138 + "cc", 139 + "libc", 140 + ] 141 + 142 + [[package]] 143 + name = "glob" 144 + version = "0.3.1" 145 + source = "registry+https://github.com/rust-lang/crates.io-index" 146 + checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b" 147 + 148 + [[package]] 149 + name = "heck" 150 + version = "0.4.1" 151 + source = "registry+https://github.com/rust-lang/crates.io-index" 152 + checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" 153 + 154 + [[package]] 155 + name = "hermit-abi" 156 + version = "0.3.1" 157 + source = "registry+https://github.com/rust-lang/crates.io-index" 158 + checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" 159 + 160 + [[package]] 161 + name = "io-lifetimes" 162 + version = "1.0.10" 163 + source = "registry+https://github.com/rust-lang/crates.io-index" 164 + checksum = "9c66c74d2ae7e79a5a8f7ac924adbe38ee42a859c6539ad869eb51f0b52dc220" 165 + dependencies = [ 166 + "hermit-abi", 167 + "libc", 168 + "windows-sys 0.48.0", 169 + ] 170 + 171 + [[package]] 172 + name = "is-terminal" 173 + version = "0.4.7" 174 + source = "registry+https://github.com/rust-lang/crates.io-index" 175 + checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" 176 + dependencies = [ 177 + "hermit-abi", 178 + "io-lifetimes", 179 + "rustix", 180 + "windows-sys 0.48.0", 181 + ] 182 + 183 + [[package]] 184 + name = "itertools" 185 + version = "0.10.5" 186 + source = "registry+https://github.com/rust-lang/crates.io-index" 187 + checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" 188 + dependencies = [ 189 + "either", 190 + ] 191 + 192 + [[package]] 193 + name = "libc" 194 + version = "0.2.141" 195 + source = "registry+https://github.com/rust-lang/crates.io-index" 196 + checksum = "3304a64d199bb964be99741b7a14d26972741915b3649639149b2479bb46f4b5" 197 + 198 + [[package]] 199 + name = "linux-raw-sys" 200 + version = "0.3.1" 201 + source = "registry+https://github.com/rust-lang/crates.io-index" 202 + checksum = "d59d8c75012853d2e872fb56bc8a2e53718e2cafe1a4c823143141c6d90c322f" 203 + 204 + [[package]] 205 + name = "memchr" 206 + version = "2.5.0" 207 + source = "registry+https://github.com/rust-lang/crates.io-index" 208 + checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" 209 + 210 + [[package]] 211 + name = "minimal-lexical" 212 + version = "0.2.1" 213 + source = "registry+https://github.com/rust-lang/crates.io-index" 214 + checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" 215 + 216 + [[package]] 217 + name = "nom" 218 + version = "7.1.3" 219 + source = "registry+https://github.com/rust-lang/crates.io-index" 220 + checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a" 221 + dependencies = [ 222 + "memchr", 223 + "minimal-lexical", 224 + ] 225 + 226 + [[package]] 227 + name = "once_cell" 228 + version = "1.17.1" 229 + source = "registry+https://github.com/rust-lang/crates.io-index" 230 + checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" 231 + 232 + [[package]] 233 + name = "proc-macro2" 234 + version = "1.0.56" 235 + source = "registry+https://github.com/rust-lang/crates.io-index" 236 + checksum = "2b63bdb0cd06f1f4dedf69b254734f9b45af66e4a031e42a7480257d9898b435" 237 + dependencies = [ 238 + "unicode-ident", 239 + ] 240 + 241 + [[package]] 242 + name = "quote" 243 + version = "1.0.26" 244 + source = "registry+https://github.com/rust-lang/crates.io-index" 245 + checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" 246 + dependencies = [ 247 + "proc-macro2", 248 + ] 249 + 250 + [[package]] 251 + name = "rustix" 252 + version = "0.37.8" 253 + source = "registry+https://github.com/rust-lang/crates.io-index" 254 + checksum = "1aef160324be24d31a62147fae491c14d2204a3865c7ca8c3b0d7f7bcb3ea635" 255 + dependencies = [ 256 + "bitflags", 257 + "errno", 258 + "io-lifetimes", 259 + "libc", 260 + "linux-raw-sys", 261 + "windows-sys 0.48.0", 262 + ] 263 + 264 + [[package]] 265 + name = "sleek" 266 + version = "0.3.0" 267 + dependencies = [ 268 + "clap", 269 + "glob", 270 + "sqlformat", 271 + "thiserror", 272 + ] 273 + 274 + [[package]] 275 + name = "sqlformat" 276 + version = "0.2.1" 277 + source = "registry+https://github.com/rust-lang/crates.io-index" 278 + checksum = "0c12bc9199d1db8234678b7051747c07f517cdcf019262d1847b94ec8b1aee3e" 279 + dependencies = [ 280 + "itertools", 281 + "nom", 282 + "unicode_categories", 283 + ] 284 + 285 + [[package]] 286 + name = "strsim" 287 + version = "0.10.0" 288 + source = "registry+https://github.com/rust-lang/crates.io-index" 289 + checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" 290 + 291 + [[package]] 292 + name = "syn" 293 + version = "2.0.13" 294 + source = "registry+https://github.com/rust-lang/crates.io-index" 295 + checksum = "4c9da457c5285ac1f936ebd076af6dac17a61cfe7826f2076b4d015cf47bc8ec" 296 + dependencies = [ 297 + "proc-macro2", 298 + "quote", 299 + "unicode-ident", 300 + ] 301 + 302 + [[package]] 303 + name = "thiserror" 304 + version = "1.0.40" 305 + source = "registry+https://github.com/rust-lang/crates.io-index" 306 + checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" 307 + dependencies = [ 308 + "thiserror-impl", 309 + ] 310 + 311 + [[package]] 312 + name = "thiserror-impl" 313 + version = "1.0.40" 314 + source = "registry+https://github.com/rust-lang/crates.io-index" 315 + checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" 316 + dependencies = [ 317 + "proc-macro2", 318 + "quote", 319 + "syn", 320 + ] 321 + 322 + [[package]] 323 + name = "unicode-ident" 324 + version = "1.0.8" 325 + source = "registry+https://github.com/rust-lang/crates.io-index" 326 + checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" 327 + 328 + [[package]] 329 + name = "unicode_categories" 330 + version = "0.1.1" 331 + source = "registry+https://github.com/rust-lang/crates.io-index" 332 + checksum = "39ec24b3121d976906ece63c9daad25b85969647682eee313cb5779fdd69e14e" 333 + 334 + [[package]] 335 + name = "utf8parse" 336 + version = "0.2.1" 337 + source = "registry+https://github.com/rust-lang/crates.io-index" 338 + checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a" 339 + 340 + [[package]] 341 + name = "windows-sys" 342 + version = "0.45.0" 343 + source = "registry+https://github.com/rust-lang/crates.io-index" 344 + checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" 345 + dependencies = [ 346 + "windows-targets 0.42.2", 347 + ] 348 + 349 + [[package]] 350 + name = "windows-sys" 351 + version = "0.48.0" 352 + source = "registry+https://github.com/rust-lang/crates.io-index" 353 + checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" 354 + dependencies = [ 355 + "windows-targets 0.48.0", 356 + ] 357 + 358 + [[package]] 359 + name = "windows-targets" 360 + version = "0.42.2" 361 + source = "registry+https://github.com/rust-lang/crates.io-index" 362 + checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" 363 + dependencies = [ 364 + "windows_aarch64_gnullvm 0.42.2", 365 + "windows_aarch64_msvc 0.42.2", 366 + "windows_i686_gnu 0.42.2", 367 + "windows_i686_msvc 0.42.2", 368 + "windows_x86_64_gnu 0.42.2", 369 + "windows_x86_64_gnullvm 0.42.2", 370 + "windows_x86_64_msvc 0.42.2", 371 + ] 372 + 373 + [[package]] 374 + name = "windows-targets" 375 + version = "0.48.0" 376 + source = "registry+https://github.com/rust-lang/crates.io-index" 377 + checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" 378 + dependencies = [ 379 + "windows_aarch64_gnullvm 0.48.0", 380 + "windows_aarch64_msvc 0.48.0", 381 + "windows_i686_gnu 0.48.0", 382 + "windows_i686_msvc 0.48.0", 383 + "windows_x86_64_gnu 0.48.0", 384 + "windows_x86_64_gnullvm 0.48.0", 385 + "windows_x86_64_msvc 0.48.0", 386 + ] 387 + 388 + [[package]] 389 + name = "windows_aarch64_gnullvm" 390 + version = "0.42.2" 391 + source = "registry+https://github.com/rust-lang/crates.io-index" 392 + checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" 393 + 394 + [[package]] 395 + name = "windows_aarch64_gnullvm" 396 + version = "0.48.0" 397 + source = "registry+https://github.com/rust-lang/crates.io-index" 398 + checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" 399 + 400 + [[package]] 401 + name = "windows_aarch64_msvc" 402 + version = "0.42.2" 403 + source = "registry+https://github.com/rust-lang/crates.io-index" 404 + checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" 405 + 406 + [[package]] 407 + name = "windows_aarch64_msvc" 408 + version = "0.48.0" 409 + source = "registry+https://github.com/rust-lang/crates.io-index" 410 + checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" 411 + 412 + [[package]] 413 + name = "windows_i686_gnu" 414 + version = "0.42.2" 415 + source = "registry+https://github.com/rust-lang/crates.io-index" 416 + checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" 417 + 418 + [[package]] 419 + name = "windows_i686_gnu" 420 + version = "0.48.0" 421 + source = "registry+https://github.com/rust-lang/crates.io-index" 422 + checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" 423 + 424 + [[package]] 425 + name = "windows_i686_msvc" 426 + version = "0.42.2" 427 + source = "registry+https://github.com/rust-lang/crates.io-index" 428 + checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" 429 + 430 + [[package]] 431 + name = "windows_i686_msvc" 432 + version = "0.48.0" 433 + source = "registry+https://github.com/rust-lang/crates.io-index" 434 + checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" 435 + 436 + [[package]] 437 + name = "windows_x86_64_gnu" 438 + version = "0.42.2" 439 + source = "registry+https://github.com/rust-lang/crates.io-index" 440 + checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" 441 + 442 + [[package]] 443 + name = "windows_x86_64_gnu" 444 + version = "0.48.0" 445 + source = "registry+https://github.com/rust-lang/crates.io-index" 446 + checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" 447 + 448 + [[package]] 449 + name = "windows_x86_64_gnullvm" 450 + version = "0.42.2" 451 + source = "registry+https://github.com/rust-lang/crates.io-index" 452 + checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" 453 + 454 + [[package]] 455 + name = "windows_x86_64_gnullvm" 456 + version = "0.48.0" 457 + source = "registry+https://github.com/rust-lang/crates.io-index" 458 + checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" 459 + 460 + [[package]] 461 + name = "windows_x86_64_msvc" 462 + version = "0.42.2" 463 + source = "registry+https://github.com/rust-lang/crates.io-index" 464 + checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" 465 + 466 + [[package]] 467 + name = "windows_x86_64_msvc" 468 + version = "0.48.0" 469 + source = "registry+https://github.com/rust-lang/crates.io-index" 470 + checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
+32
pkgs/development/tools/database/sleek/default.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + }: 5 + 6 + rustPlatform.buildRustPackage rec { 7 + pname = "sleek"; 8 + version = "0.3.0"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "nrempel"; 12 + repo = "sleek"; 13 + rev = "v${version}"; 14 + hash = "sha256-VQ0LmKhFsC12qoXCFHxtV5E+J7eRvZMVH0j+5r8pDk8="; 15 + }; 16 + 17 + # 0.3.0 has been tagged before the actual Cargo.lock bump, resulting in an inconsitent lock file. 18 + # To work around this, the Cargo.lock below is from the commit right after the tag: 19 + # https://github.com/nrempel/sleek/commit/18c5457a813a16e3eebfc1c6f512131e6e8daa02 20 + postPatch = '' 21 + ln -s --force ${./Cargo.lock} Cargo.lock 22 + ''; 23 + 24 + cargoLock.lockFile = ./Cargo.lock; 25 + 26 + meta = with lib; { 27 + description = "A CLI tool for formatting SQL"; 28 + homepage = "https://github.com/nrempel/sleek"; 29 + license = licenses.mit; 30 + maintainers = with maintainers; [ xrelkd ]; 31 + }; 32 + }
+2
pkgs/top-level/all-packages.nix
··· 16635 16635 16636 16636 shmig = callPackage ../development/tools/database/shmig { }; 16637 16637 16638 + sleek = callPackage ../development/tools/database/sleek { }; 16639 + 16638 16640 smlfmt = callPackage ../development/tools/smlfmt { }; 16639 16641 16640 16642 # smlnjBootstrap should be redundant, now that smlnj works on Darwin natively