Nix flake access a libc library causing a corruption of the compilation

I have the following nix flake package

  description = "Unified Hardware Wallet Interface";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs";
    flake-utils.url = "github:numtide/flake-utils";
    zig.url = "github:mitchellh/zig-overlay";

  outputs = { self, nixpkgs, flake-utils, zig }: 
    flake-utils.lib.eachDefaultSystem (system:
      let pkgs = nixpkgs.legacyPackages.${system};
      in {
        packages = {
          default = pkgs.just;
        formatter = pkgs.nixpkgs-fmt;

        devShell = pkgs.mkShell {
          buildInputs = [ pkgs.just pkgs.hidapi pkgs.zls zig.packages.${system}.master ];
          buildPhase = "just";
          shellHook = ''
             export CI="false"
             alias make="just"

And when I build my package I receive the following error

zig build test
run test: error: /home/runner/work/unified-hwi/unified-hwi/zig-cache/o/b9d64e9a2e63b669013748e3eaeddf3c/test: /lib/x86_64-linux-gnu/ version `GLIBC_ABI_DT_RELR' not found (required by /nix/store/9la894yvmmksqlapd4v16wvxpaw3rg70-glibc-2.37-8/lib/
run test: error: the following command exited with code 1 (expected exited with code 0):
/home/runner/work/unified-hwi/unified-hwi/zig-cache/o/b9d64e9a2e63b669013748e3eaeddf3c/test --listen=- 
Build Summary: 1/3 steps succeeded; 1 failed (disable with --summary none)
test transitive failure
+- run test failure
error: the following build command failed with exit code 1:
/home/runner/work/unified-hwi/unified-hwi/zig-cache/o/eb2336b845ea41af7f6f6b45e9ba68dc/build /nix/store/zs03j8pb4s27kq2nz9mx1jwm3bkcdgqw-zig-0.12.0-dev.256+8b74eae9c/bin/zig /home/runner/work/unified-hwi/unified-hwi /home/runner/work/unified-hwi/unified-hwi/zig-cache /home/runner/.cache/zig test
error: Recipe `default` failed on line 3 with exit code 1

I see that there is an issue closed on github but I am not able to see why this is happening, really there is no solution for it? texlive: impure glibc error when building formats · Issue #230519 · NixOS/nixpkgs · GitHub