Build of `zpool-auto-extend-partitions` fails

My system update fails with “error: failed to run custom build command for blkid-sys v0.1.5”.

For the system configuration I use sudo nixos-rebuild switch --flake '/etc/nixos#' --impure. As the input I use "nixpkgs/nixos-unstable";. But it also fails building with channel https://nixos.org/channels/nixpkgs-unstable.

How can I build it successfully?

Complete error log
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/dhcaxx402532i7mrilqnq3kqqnwnd21m-source
source root is source
Executing cargoSetupPostUnpackHook
unpacking source archive /nix/store/xf7djhnfadk3rhvas88v2y0c8vd6c6pn-zpool-auto-expand-p
artitions-0.1.0-vendor.tar.gz
Finished cargoSetupPostUnpackHook
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/Cargo.lock and /build/zpool-auto-expand-par
titions-0.1.0-vendor.tar.gz/Cargo.lock
Finished cargoSetupPostPatchHook
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Executing cargoBuildHook
++ env CC_X86_64_UNKNOWN_LINUX_GNU=/nix/store/90h6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapp
er-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LINUX_GNU=/nix/store/90h6k8ylkgn81k10190v5c9ldyjpzgl
9-gcc-wrapper-12.3.0/bin/c++ CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/90h
6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/cc CC_X86_64_UNKNOWN_LINUX_GNU=/nix
/store/90h6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/cc CXX_X86_64_UNKNOWN_LIN
UX_GNU=/nix/store/90h6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/c++ CARGO_TARG
ET_X86_64_UNKNOWN_LINUX_GNU_LINKER=/nix/store/90h6k8ylkgn81k10190v5c9ldyjpzgl9-gcc-wrapp
er-12.3.0/bin/cc CARGO_BUILD_TARGET=x86_64-unknown-linux-gnu HOST_CC=/nix/store/90h6k8yl
kgn81k10190v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/cc HOST_CXX=/nix/store/90h6k8ylkgn81k101
90v5c9ldyjpzgl9-gcc-wrapper-12.3.0/bin/c++ cargo build -j 4 --target x86_64-unknown-linu
x-gnu --frozen --profile release
   Compiling proc-macro2 v1.0.36
   Compiling unicode-xid v0.2.2
   Compiling libc v0.2.119
   Compiling memchr v2.4.1
   Compiling glob v0.3.0
   Compiling clang-sys v0.28.1
   Compiling quote v1.0.15
   Compiling syn v1.0.86
   Compiling log v0.4.14
   Compiling cc v1.0.73
   Compiling version_check v0.1.5
   Compiling atty v0.2.14
   Compiling aho-corasick v0.7.18
   Compiling quick-error v1.2.3
   Compiling cfg-if v1.0.0
   Compiling lazy_static v1.4.0
   Compiling peeking_take_while v0.1.2
   Compiling rustc-hash v1.1.0
   Compiling version_check v0.9.4
   Compiling serde_derive v1.0.136
   Compiling bindgen v0.53.1
   Compiling bindgen v0.51.1
   Compiling proc-macro-error-attr v1.0.4
   Compiling env_logger v0.7.1
   Compiling env_logger v0.6.2
   Compiling serde v1.0.136
   Compiling lazycell v1.3.0
   Compiling proc-macro-error v1.0.4
   Compiling rustversion v1.0.6
   Compiling pkg-config v0.3.24
   Compiling nvpair-sys v0.1.0
   Compiling autocfg v1.1.0
   Compiling indexmap v1.8.0
   Compiling libzfs-sys v0.5.11
   Compiling blkid-sys v0.1.5
   Compiling unicode-segmentation v1.9.0
   Compiling heck v0.3.3
error: failed to run custom build command for `blkid-sys v0.1.5`

Caused by:
  process didn't exit successfully: `/build/source/target/release/build/blkid-sys-749a8c  3cb3f38537/build-script-build` (exit status: 101)
  --- stdout
  cargo:rustc-link-lib=blkid

  --- stderr
  thread 'main' panicked at /build/zpool-auto-expand-partitions-0.1.0-vendor.tar.gz/proc  -macro2/src/fallback.rs:708:9:
  "__atomic_wide_counter_struct_(unnamed_at_/nix/store/mrgib0s2ayr81xv1q84xsjg8ijybalq3-  glibc-2_38-27-dev/include/bits/atomic_wide_counter_h_28_3)" is not a valid Ident
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Sysinfo
 sudo nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.60, NixOS, 23.11 (Tapir), 23.11.20231029.0cbe9f6`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - channels(root): `"nixos, nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos

Solved with installing the new version from ǹixpkgs-unstable` with that flake.nix:

{
  inputs = {
    nixpkgs.url = "nixpkgs/nixos-unstable";
    zpool-auto-expand-partitions-pkgs.url =
      "github:NixOS/nixpkgs/nixpkgs-unstable";
  };

  outputs = {
    self,
    nixpkgs;
    zpool-auto-expand-partitions-pkgs,
    ...
  }@attrs:
  let
    system = "x86_64-linux";
    pkgs = import nixpkgs {
      inherit system;
    };
  in {
    nixosConfigurations.host = nixpkgs.lib.nixosSystem {
      inherit system;
      inherit pkgs;
      specialArgs = attrs;
      modules = [
        {
          nixpkgs.overlays = [
            (self: super: {
              zpool-auto-expand-partitions =
                zpool-auto-expand-partitions-pkgs.legacyPackages.x86_64-linux.zpool-auto-expand-partitions;
            })
          ];
        }
        ./configuration.nix
      ];
    };
  };
}