lol

air-formatter: init at 0.4.0 (#384848)

authored by

Justin Bedő and committed by
GitHub
ce7e63af 32d2826f

+117
+84
pkgs/by-name/ai/air-formatter/cargo-lock.patch
··· 1 + diff --git a/Cargo.lock b/Cargo.lock 2 + index df5a6e9..0cf72e2 100644 3 + --- a/Cargo.lock 4 + +++ b/Cargo.lock 5 + @@ -382,7 +382,7 @@ dependencies = [ 6 + "anyhow", 7 + "biome_rowan", 8 + "rustc-hash", 9 + - "tower-lsp 0.20.0 (registry+https://github.com/rust-lang/crates.io-index)", 10 + + "tower-lsp", 11 + ] 12 + 13 + [[package]] 14 + @@ -1369,7 +1369,7 @@ dependencies = [ 15 + "time", 16 + "tokio", 17 + "tokio-util", 18 + - "tower-lsp 0.20.0 (git+https://github.com/lionel-/tower-lsp?branch=bugfix%2Fpatches)", 19 + + "tower-lsp", 20 + "tracing", 21 + "tracing-subscriber", 22 + "tree-sitter", 23 + @@ -1406,7 +1406,7 @@ dependencies = [ 24 + "serde_json", 25 + "tokio", 26 + "tokio-util", 27 + - "tower-lsp 0.20.0 (git+https://github.com/lionel-/tower-lsp?branch=bugfix%2Fpatches)", 28 + + "tower-lsp", 29 + "tracing", 30 + "url", 31 + ] 32 + @@ -2311,29 +2311,6 @@ version = "0.3.3" 33 + source = "registry+https://github.com/rust-lang/crates.io-index" 34 + checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" 35 + 36 + -[[package]] 37 + -name = "tower-lsp" 38 + -version = "0.20.0" 39 + -source = "registry+https://github.com/rust-lang/crates.io-index" 40 + -checksum = "d4ba052b54a6627628d9b3c34c176e7eda8359b7da9acd497b9f20998d118508" 41 + -dependencies = [ 42 + - "async-trait", 43 + - "auto_impl", 44 + - "bytes", 45 + - "dashmap 5.5.3", 46 + - "futures", 47 + - "httparse", 48 + - "lsp-types", 49 + - "memchr", 50 + - "serde", 51 + - "serde_json", 52 + - "tokio", 53 + - "tokio-util", 54 + - "tower", 55 + - "tower-lsp-macros 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", 56 + - "tracing", 57 + -] 58 + - 59 + [[package]] 60 + name = "tower-lsp" 61 + version = "0.20.0" 62 + @@ -2352,21 +2329,10 @@ dependencies = [ 63 + "tokio", 64 + "tokio-util", 65 + "tower", 66 + - "tower-lsp-macros 0.9.0 (git+https://github.com/lionel-/tower-lsp?branch=bugfix%2Fpatches)", 67 + + "tower-lsp-macros", 68 + "tracing", 69 + ] 70 + 71 + -[[package]] 72 + -name = "tower-lsp-macros" 73 + -version = "0.9.0" 74 + -source = "registry+https://github.com/rust-lang/crates.io-index" 75 + -checksum = "84fd902d4e0b9a4b27f2f440108dc034e1758628a9b702f8ec61ad66355422fa" 76 + -dependencies = [ 77 + - "proc-macro2", 78 + - "quote", 79 + - "syn 2.0.90", 80 + -] 81 + - 82 + [[package]] 83 + name = "tower-lsp-macros" 84 + version = "0.9.0"
+33
pkgs/by-name/ai/air-formatter/package.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + }: 6 + rustPlatform.buildRustPackage (attrs: { 7 + pname = "air-formatter"; 8 + version = "0.4.0"; 9 + 10 + src = fetchFromGitHub { 11 + owner = "posit-dev"; 12 + repo = "air"; 13 + rev = attrs.version; 14 + hash = "sha256-BUbOG4D5UD+Z8Cpr4qodUrM3FFcMwjBd4M/YdPZPtpM="; 15 + }; 16 + 17 + # Remove duplicate entries from cargo lock 18 + cargoPatches = [ ./cargo-lock.patch ]; 19 + 20 + useFetchCargoVendor = true; 21 + cargoHash = "sha256-EnvhqAZK76O6g99OgLruQDBUe9m9bn5ier3bgHI/f+A="; 22 + 23 + useNextest = true; 24 + 25 + meta = { 26 + description = "An extremely fast R code formatter"; 27 + homepage = "https://posit-dev.github.io/air"; 28 + changelog = "https://github.com/posit-dev/air/blob/" + attrs.version + "/CHANGELOG.md"; 29 + license = lib.licenses.mit; 30 + maintainers = [ lib.maintainers.kupac ]; 31 + mainProgram = "air"; 32 + }; 33 + })