biome: 1.9.4 -> 2.0.0 (#392843)

authored by isabelroses.com and committed by GitHub fe2d4a69 c7661dfc

+12 -9
+12 -9
pkgs/by-name/bi/biome/package.nix
··· 8 8 zlib, 9 9 gitMinimal, 10 10 }: 11 - rustPlatform.buildRustPackage rec { 11 + rustPlatform.buildRustPackage (finalAttrs: { 12 12 pname = "biome"; 13 - version = "1.9.4"; 13 + version = "2.0.0"; 14 14 15 15 src = fetchFromGitHub { 16 16 owner = "biomejs"; 17 17 repo = "biome"; 18 - rev = "cli/v${version}"; 19 - hash = "sha256-oK1tCPoTeUHvVdi+ym4J5xEj2NIi2zHQpNU1KUchQfY="; 18 + rev = "@biomejs/biome@${finalAttrs.version}"; 19 + hash = "sha256-2oHEaHKTyD+j34Or/Obb0pPGpEXEgSq6wowyYVV6DqI="; 20 20 }; 21 21 22 22 useFetchCargoVendor = true; 23 - cargoHash = "sha256-lo4IAStdv1CW/cQYzRDLzDwsDqCwoo5xKen2Rti9kPU="; 23 + cargoHash = "sha256-jh7LlX7Ip2oy5NcXHfFkGeyJVGeu4Y0HqN690bok+/E="; 24 24 25 25 nativeBuildInputs = [ pkg-config ]; 26 26 ··· 33 33 nativeCheckInputs = [ gitMinimal ]; 34 34 35 35 cargoBuildFlags = [ "-p=biome_cli" ]; 36 - cargoTestFlags = cargoBuildFlags ++ [ 36 + cargoTestFlags = finalAttrs.cargoBuildFlags ++ [ 37 + # fails due to cargo insta 37 38 "-- --skip=commands::check::print_json" 38 39 "--skip=commands::check::print_json_pretty" 39 40 "--skip=commands::explain::explain_logs" 40 41 "--skip=commands::format::print_json" 41 42 "--skip=commands::format::print_json_pretty" 42 43 "--skip=commands::format::should_format_files_in_folders_ignored_by_linter" 44 + "--skip=cases::migrate_v2::should_successfully_migrate_sentry" 43 45 ]; 44 46 45 47 env = { 46 - BIOME_VERSION = version; 48 + BIOME_VERSION = finalAttrs.version; 47 49 LIBGIT2_NO_VENDOR = 1; 50 + INSTA_UPDATE = "no"; 48 51 }; 49 52 50 53 preCheck = '' ··· 58 61 meta = { 59 62 description = "Toolchain of the web"; 60 63 homepage = "https://biomejs.dev/"; 61 - changelog = "https://github.com/biomejs/biome/blob/${src.rev}/CHANGELOG.md"; 64 + changelog = "https://github.com/biomejs/biome/blob/${finalAttrs.src.rev}/CHANGELOG.md"; 62 65 license = lib.licenses.mit; 63 66 maintainers = with lib.maintainers; [ 64 67 figsoda ··· 66 69 ]; 67 70 mainProgram = "biome"; 68 71 }; 69 - } 72 + })