From 4315f4c9982383148f98bcb2208a0bf68bc7b9e0 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 8 Aug 2026 14:46:52 +0200 Subject: [PATCH 1/3] bcachefs-tools: fix riscv build --- pkgs/by-name/bc/bcachefs-tools/package.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/by-name/bc/bcachefs-tools/package.nix b/pkgs/by-name/bc/bcachefs-tools/package.nix index 0c7bd211bd33..7d97108df4ea 100644 --- a/pkgs/by-name/bc/bcachefs-tools/package.nix +++ b/pkgs/by-name/bc/bcachefs-tools/package.nix @@ -113,6 +113,12 @@ stdenv.mkDerivation (finalAttrs: { "CARGO_TARGET_${stdenv.hostPlatform.rust.cargoEnvVarTarget}_LINKER" = "${stdenv.cc.targetPrefix}cc"; }; + # Workaround for RISCV cross-compilation issue + # https://github.com/koverstreet/bcachefs-tools/issues/850 + preBuild = lib.optionalString stdenv.hostPlatform.isRiscV '' + export BINDGEN_EXTRA_CLANG_ARGS="$BINDGEN_EXTRA_CLANG_ARGS --target=riscv64-unknown-linux-gnu -march=rv64gc" + ''; + # FIXME: Try enabling this once the default linux kernel is at least 6.7 doCheck = false; # needs bcachefs module loaded on builder From 8fc67396b3276bfdcfdc4db92cd3063f0728da69 Mon Sep 17 00:00:00 2001 From: Jost Alemann Date: Tue, 11 Aug 2026 09:42:17 +0200 Subject: [PATCH 2/3] ty: 0.0.69 -> 0.0.70 Changelog: https://github.com/astral-sh/ty/releases/tag/0.0.70 Diff: https://github.com/astral-sh/ty/compare/0.0.69...0.0.70 --- pkgs/by-name/ty/ty/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ty/ty/package.nix b/pkgs/by-name/ty/ty/package.nix index 0a57be97ee5f..d71e6974b5bb 100644 --- a/pkgs/by-name/ty/ty/package.nix +++ b/pkgs/by-name/ty/ty/package.nix @@ -17,7 +17,7 @@ rustPlatform.buildRustPackage (finalAttrs: { pname = "ty"; - version = "0.0.69"; + version = "0.0.70"; __structuredAttrs = true; src = fetchFromGitHub { @@ -25,7 +25,7 @@ rustPlatform.buildRustPackage (finalAttrs: { repo = "ty"; tag = finalAttrs.version; fetchSubmodules = true; - hash = "sha256-bu/2vHmhHYS/3EZM9Ibh8Y0v/aigriDwWu7Wn7gNvds="; + hash = "sha256-rlhU/987KaTAXukZDUDY0XyDUQiC6qHGIXS2epg6ziI="; }; # For Darwin platforms, remove the integration test for file notifications, @@ -39,7 +39,7 @@ rustPlatform.buildRustPackage (finalAttrs: { cargoBuildFlags = [ "--package=ty" ]; - cargoHash = "sha256-DUCTpqnzsGPH3OQkutduqrCZd7uuOgbZZmnXNCC8YdY="; + cargoHash = "sha256-eM+MdAxx6UqvFSTnUmCk7Nx1MuprrYrv/64Jy90nE0c="; nativeBuildInputs = [ installShellFiles ]; buildInputs = [ rust-jemalloc-sys ]; From a3f12504d299d8c35e2e1f9799fadb3b6e4d0c03 Mon Sep 17 00:00:00 2001 From: qubitnano <146656568+qubitnano@users.noreply.github.com> Date: Sun, 9 Aug 2026 20:43:08 -0400 Subject: [PATCH 3/3] bcachefs-tools: 1.38.8 -> 1.39.1 https://evilpiepirate.org/git/bcachefs-tools.git/tree/Changelog.mdwn --- pkgs/by-name/bc/bcachefs-tools/package.nix | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/pkgs/by-name/bc/bcachefs-tools/package.nix b/pkgs/by-name/bc/bcachefs-tools/package.nix index 0c7bd211bd33..0a794322e191 100644 --- a/pkgs/by-name/bc/bcachefs-tools/package.nix +++ b/pkgs/by-name/bc/bcachefs-tools/package.nix @@ -2,7 +2,6 @@ lib, stdenv, fetchFromGitHub, - fetchpatch, pkg-config, libuuid, libsodium, @@ -32,29 +31,20 @@ stdenv.mkDerivation (finalAttrs: { pname = "bcachefs-tools"; - version = "1.38.8"; + version = "1.39.1"; src = fetchFromGitHub { owner = "koverstreet"; repo = "bcachefs-tools"; tag = "v${finalAttrs.version}"; - hash = "sha256-9sDE7ua3WMCfV9ZbwQdAbpatv2IhvcwHzzPr+/l2au0="; + hash = "sha256-KJBzVbK5DL+ZK27Oyyn8vCWRQUHrIAelrex1oX+fWq4="; }; cargoDeps = rustPlatform.fetchCargoVendor { inherit (finalAttrs) src; - hash = "sha256-F1+FeAlYSqOxeWJI8vHShpXrOZqYXjNGvty/s6f6u8w="; + hash = "sha256-Yb2DaFLuhAkwYED+s9SRKsjxluWoES4RSvKPKfd/kyE="; }; - patches = [ - # Fix compile-time assertion failure on big-endian - (fetchpatch { - name = "0001-bcachefs-tools-debug-copy-packed-bkey-fields-before-asserting.patch"; - url = "https://evilpiepirate.org/git/bcachefs-tools.git/patch/?id=79f119c4cd6900ab9ea27b0aa671f68300d9d38e"; - hash = "sha256-ACrpad93wrZOXhc73otnXBNQvyoDeZSfgtwze5nKaUE="; - }) - ]; - postPatch = '' substituteInPlace Makefile \ --replace-fail "target/release/bcachefs" "target/${stdenv.hostPlatform.rust.rustcTargetSpec}/release/bcachefs" @@ -163,6 +153,5 @@ stdenv.mkDerivation (finalAttrs: { ]; platforms = lib.platforms.linux; mainProgram = "bcachefs"; - broken = stdenv.hostPlatform.isi686; # error: stack smashing detected }; })