diff --git a/pkgs/by-name/bi/biome/package.nix b/pkgs/by-name/bi/biome/package.nix index b5eaa405d1c5..82232fc576a7 100644 --- a/pkgs/by-name/bi/biome/package.nix +++ b/pkgs/by-name/bi/biome/package.nix @@ -8,19 +8,19 @@ zlib, gitMinimal, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "biome"; - version = "1.9.4"; + version = "2.0.0"; src = fetchFromGitHub { owner = "biomejs"; repo = "biome"; - rev = "cli/v${version}"; - hash = "sha256-oK1tCPoTeUHvVdi+ym4J5xEj2NIi2zHQpNU1KUchQfY="; + rev = "@biomejs/biome@${finalAttrs.version}"; + hash = "sha256-2oHEaHKTyD+j34Or/Obb0pPGpEXEgSq6wowyYVV6DqI="; }; useFetchCargoVendor = true; - cargoHash = "sha256-lo4IAStdv1CW/cQYzRDLzDwsDqCwoo5xKen2Rti9kPU="; + cargoHash = "sha256-jh7LlX7Ip2oy5NcXHfFkGeyJVGeu4Y0HqN690bok+/E="; nativeBuildInputs = [ pkg-config ]; @@ -33,18 +33,21 @@ rustPlatform.buildRustPackage rec { nativeCheckInputs = [ gitMinimal ]; cargoBuildFlags = [ "-p=biome_cli" ]; - cargoTestFlags = cargoBuildFlags ++ [ + cargoTestFlags = finalAttrs.cargoBuildFlags ++ [ + # fails due to cargo insta "-- --skip=commands::check::print_json" "--skip=commands::check::print_json_pretty" "--skip=commands::explain::explain_logs" "--skip=commands::format::print_json" "--skip=commands::format::print_json_pretty" "--skip=commands::format::should_format_files_in_folders_ignored_by_linter" + "--skip=cases::migrate_v2::should_successfully_migrate_sentry" ]; env = { - BIOME_VERSION = version; + BIOME_VERSION = finalAttrs.version; LIBGIT2_NO_VENDOR = 1; + INSTA_UPDATE = "no"; }; preCheck = '' @@ -58,7 +61,7 @@ rustPlatform.buildRustPackage rec { meta = { description = "Toolchain of the web"; homepage = "https://biomejs.dev/"; - changelog = "https://github.com/biomejs/biome/blob/${src.rev}/CHANGELOG.md"; + changelog = "https://github.com/biomejs/biome/blob/${finalAttrs.src.rev}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ figsoda @@ -66,4 +69,4 @@ rustPlatform.buildRustPackage rec { ]; mainProgram = "biome"; }; -} +})