air-formatter: 0.4.0 -> 0.4.1 (#386693)

authored by Gaétan Lepage and committed by GitHub 0b791963 ba8dc49f

+19 -6
+19 -6
pkgs/by-name/ai/air-formatter/package.nix
··· 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";
··· 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5 + versionCheckHook, 6 + nix-update-script, 7 }: 8 + rustPlatform.buildRustPackage (finalAttrs: { 9 pname = "air-formatter"; 10 + version = "0.4.1"; 11 12 src = fetchFromGitHub { 13 owner = "posit-dev"; 14 repo = "air"; 15 + tag = finalAttrs.version; 16 + hash = "sha256-ePTbXwOYIJF8xsiHR03EUwQnKP8KSN/8S8iRY8ME988="; 17 }; 18 19 # Remove duplicate entries from cargo lock 20 cargoPatches = [ ./cargo-lock.patch ]; 21 22 useFetchCargoVendor = true; 23 + cargoHash = "sha256-EHhelQDXGLZqbUia84OqU7frlRBXfi2oPDxhLuW7d64="; 24 25 useNextest = true; 26 27 + nativeInstallCheckInputs = [ 28 + versionCheckHook 29 + ]; 30 + versionCheckProgram = "${placeholder "out"}/bin/air"; 31 + versionCheckProgramArg = [ "--version" ]; 32 + doInstallCheck = true; 33 + 34 + passthru = { 35 + updateScript = nix-update-script { }; 36 + }; 37 + 38 meta = { 39 description = "An extremely fast R code formatter"; 40 homepage = "https://posit-dev.github.io/air"; 41 + changelog = "https://github.com/posit-dev/air/blob/${finalAttrs.version}/CHANGELOG.md"; 42 license = lib.licenses.mit; 43 maintainers = [ lib.maintainers.kupac ]; 44 mainProgram = "air";