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 2 lib, 3 3 rustPlatform, 4 4 fetchFromGitHub, 5 + versionCheckHook, 6 + nix-update-script, 5 7 }: 6 - rustPlatform.buildRustPackage (attrs: { 8 + rustPlatform.buildRustPackage (finalAttrs: { 7 9 pname = "air-formatter"; 8 - version = "0.4.0"; 10 + version = "0.4.1"; 9 11 10 12 src = fetchFromGitHub { 11 13 owner = "posit-dev"; 12 14 repo = "air"; 13 - rev = attrs.version; 14 - hash = "sha256-BUbOG4D5UD+Z8Cpr4qodUrM3FFcMwjBd4M/YdPZPtpM="; 15 + tag = finalAttrs.version; 16 + hash = "sha256-ePTbXwOYIJF8xsiHR03EUwQnKP8KSN/8S8iRY8ME988="; 15 17 }; 16 18 17 19 # Remove duplicate entries from cargo lock 18 20 cargoPatches = [ ./cargo-lock.patch ]; 19 21 20 22 useFetchCargoVendor = true; 21 - cargoHash = "sha256-EnvhqAZK76O6g99OgLruQDBUe9m9bn5ier3bgHI/f+A="; 23 + cargoHash = "sha256-EHhelQDXGLZqbUia84OqU7frlRBXfi2oPDxhLuW7d64="; 22 24 23 25 useNextest = true; 24 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 + 25 38 meta = { 26 39 description = "An extremely fast R code formatter"; 27 40 homepage = "https://posit-dev.github.io/air"; 28 - changelog = "https://github.com/posit-dev/air/blob/" + attrs.version + "/CHANGELOG.md"; 41 + changelog = "https://github.com/posit-dev/air/blob/${finalAttrs.version}/CHANGELOG.md"; 29 42 license = lib.licenses.mit; 30 43 maintainers = [ lib.maintainers.kupac ]; 31 44 mainProgram = "air";