Change:
rustPlatform.buildRustPackage rec { pname = "nix-du"; <del> version = "0.5.0"; </del> <ins> version = "0.5.1"; </ins> src = fetchFromGitHub { owner = "symphorien"; repo = "nix-du"; rev = "v${version}"; <del> sha256 = "sha256-NnoCoiYTXci7f9MXsxEhoYHwPsaAAuK2wSrDye2+SYM="; </del> <ins> sha256 = "sha256-LOs+geYOiAigxwc4VD0FiZQjAnIrcV9ncyPuwGhS92E="; </ins> }; <del> cargoSha256 = "sha256-X5181gZtvnUHZAqMjNARRVFq12LuLJfPP5ZOWxBRxXk="; </del> <ins> cargoSha256 = "sha256-aEm+SQgE63ZWpb2kXavyoiq2rVkaebFw8kqWPMr2aMA="; </ins> doCheck = true; checkInputs = [ nix graphviz ];

Discussion:
running tries to rebuild nix-du 0.5.0 (not sure why) and fails with Steps to reproduce the behavior: i'm not sure but these are true for me: nix-du installed () nix-du builds successfully <details<summarynix log /nix/store/xgmya4il4zzbbfc38zwdpcjbz6ksqhfm-nix-du-</summary<pre { "action": "setPhase", "phase": "unpackPhase" } unpacking sources unpacking source archive /nix/store/vzwbsy04xlsc451hf8zzcrwkqjsdjkwx-source source root is source Executing cargoSetupPostUnpackHook unpacking source archive /nix/store/km5fszgmfy743s08hw48frsrw9plkldf-nix-du-0.5.0- Finished cargoSetupPostUnpackHook { "action": "setPhase", "phase": "patchPhase" } patching sources Executing cargoSetupPostPatchHook Validating consistency between and /build/nix-du-0.5.0- Finished cargoSetupPostPatchHook { "action": "setPhase", "phase": "configurePhase" } configuring { "action": "setPhase", "phase": "buildPhase" } building Executing cargoBuildHook ++ env CCx8664-unknown-linux-gnu=/nix/store/58pwclg9yr437h0pfgrnbd0jis8fqasd-gcc-wrapper-11.2.0/bin/cc CXXx8664-unknown-linux-gnu=/nix/store/58pwclg9yr437h0pfgrnbd0jis8fqasd-gcc-wrapper-11.2.0/bin/c++ CCx8664-unknown-linux-gnu=/nix/store/58pwclg9yr437h0pfgrnbd0jis8fqasd-gcc-wrapper-11.2.0/bin/cc CXXx8664-unknown-linux-gnu=/nix/store/58pwclg9yr437h0pfgrnbd0jis8fqasd-gcc-wrapper-11.2.0/bin/c++ cargo build -j 4 --target x8664-unknown-linux-gnu --frozen --release [0m[0m[1m[32m Compiling[0m libc v0.2.

106 [0m[0m[1m[32m Compiling[0m cfg-if v1.0.0 [0m[0m[1m[32m Compiling[0m proc-macro2 v1.0.32 [0m[0m[1m[32m Compiling[0m unicode-xid v0.2.2 [0m[0m[1m[32m Compiling[0m memchr v2.4.1 [0m[0m[1m[32m Compiling[0m autocfg v1.0.1 [0m[0m[1m[32m Compiling[0m syn v1.0.81 [0m[0m[1m[32m Compiling[0m glob v0.3.0 [0m[0m[1m[32m Compiling[0m versioncheck v0.9.4 [0m[0m[1m[32m Compiling[0m serde v1.0.130 [0m[0m[1m[32m Compiling[0m log v0.4.14 [0m[0m[1m[32m Compiling[0m ppv-lite86 v0.2.15 [0m[0m[1m[32m Compiling[0m regex-syntax v0.6.25 [0m[0m[1m[32m Compiling[0m unicode-width v0.1.9 [0m[0m[1m[32m Compiling[0m proc-macro-hack v0.5.19 [0m[0m[1m[32m Compiling[0m minimal-lexical v0.2.1 [0m[0m[1m[32m Compiling[0m siphasher v0.3.7 [0m[0m[1m[32m Compiling[0m humantime v2.1.0 [0m[0m[1m[32m Compiling[0m ansiterm v0.11.0 [0m[0m[1m[32m Compiling[0m bitflags v1.

3.2 [0m[0m[1m[32m Compiling[0m either v1.6.1 [0m[0m[1m[32m Compiling[0m termcolor v1.1.2 [0m[0m[1m[32m Compiling[0m bindgen v0.59.2 [0m[0m[1m[32m Compiling[0m vecmap v0.8.2 [0m[0m[1m[32m Compiling[0m strsim v0.8.0 [0m[0m[1m[32m Compiling[0m peekingtakewhile v0.1.2 [0m[0m[1m[32m Compiling[0m shlex v1.1.0 [0m[0m[1m[32m Compiling[0m lazystatic v1.4.0 [0m[0m[1m[32m Compiling[0m lazycell v1.3.0 [0m[0m[1m[32m Compiling[0m rustc-hash v1.1.0 [0m[0m[1m[32m Compiling[0m pkg-config v0.3.22 [0m[0m[1m[32m Compiling[0m hashbrown v0.11.2 [0m[0m[1m[32m Compiling[0m palette v0.6.0 [0m[0m[1m[32m Compiling[0m cc v1.0.71 [0m[0m[1m[32m Compiling[0m fixedbitset v0.4.0 [0m[0m[1m[32m Compiling[0m same-file v1.0.6 [0m[0m[1m[32m Compiling[0m human-size v0.4.1 [0m[0m[1m[32m Compiling[0m humansize v1.1.1 [0m[0m[1m[32m Compiling[0m libloading v0.7.

3 [0m[0m[1m[32m Compiling[0m num-traits v0.2.14 [0m[0m[1m[32m Compiling[0m indexmap v1.7.0 [0m[0m[1m[32m Compiling[0m nom v7.1.0 [0m[0m[1m[32m Compiling[0m clang-sys v1.3.1 [0m[0m[1m[32m Compiling[0m phfshared v0.9.0 [0m[0m[1m[32m Compiling[0m walkdir v2.3.2 [0m[0m[1m[32m Compiling[0m aho-corasick v0.7.18 [0m[0m[1m[32m Compiling[0m getrandom v0.2.3 [0m[0m[1m[32m Compiling[0m atty v0.2.14 [0m[0m[1m[32m Compiling[0m termsize v0.3.2 [0m[0m[1m[32m Compiling[0m which v4.2.4 [0m[0m[1m[32m Compiling[0m quote v1.0.10 [0m[0m[1m[32m Compiling[0m randcore v0.6.3 [0m[0m[1m[32m Compiling[0m textwrap v0.11.0 [0m[0m[1m[32m Compiling[0m regex v1.5.4 [0m[0m[1m[32m Compiling[0m petgraph v0.6.0 [0m[0m[1m[32m Compiling[0m approx v0.5.0 [0m[0m[1m[32m Compiling[0m randchacha v0.3.1 [0m[0m[1m[32m Compiling[0m clap v2.33.

3 [0m[0m[1m[32m Compiling[0m toml v0.5.8 [0m[0m[1m[32m Compiling[0m envlogger v0.9.0 [0m[0m[1m[32m Compiling[0m cexpr v0.6.0 [0m[0m[1m[32m Compiling[0m rand v0.8.4 [0m[0m[1m[32m Compiling[0m find-crate v0.6.3 [0m[0m[1m[32m Compiling[0m phfgenerator v0.9.1 [0m[0m[1m[32m Compiling[0m enum-map-derive v0.6.0 [0m[0m[1m[32m Compiling[0m palettederive v0.6.0 [0m[0m[1m[32m Compiling[0m phfmacros v0.9.0 [0m[0m[1m[32m Compiling[0m enum-map v1.1.1 [0m[0m[1m[32m Compiling[0m phf v0.9.0 [0m[0m[1m[32m Compiling[0m nix-du v0.5.0 (/build/source) The following warnings were emitted during compilation: [0m[0m[1m[33mwarning[0m[1m:[0m In lambda function: [0m[0m[1m[33mwarning[0m[1m:[0m error: 'requireGcStore' was not declared in this scope [0m[0m[1m[33mwarning[0m[1m:[0m 21 | #define findroots(store) requireGcStore(store).

findRoots(false) [0m[0m[1m[33mwarning[0m[1m:[0m | ^~ [0m[0m[1m[33mwarning[0m[1m:[0m note: in definition of macro 'findroots' [0m[0m[1m[33mwarning[0m[1m:[0m 21 | #define findroots(store) requireGcStore(store).findRoots(false) [0m[0m[1m[33mwarning[0m[1m:[0m | ^~ [0m[0m[1m[31merror[0m[1m:[0m failed to run custom build command for Caused by: process didn't exit successfully: (exit status: 1) --- stdout cargo:rerun-if- cargo:rerun-if- cargo:rerun-if-env-changed=NIXMAINNOPKGCONFIG cargo:rerun-if-env-changed=PKGCONFIGx8664-unknown-linux-gnu cargo:rerun-if-env-changed=PKGCONFIGx8664unknownlinuxgnu cargo:rerun-if-env-changed=HOSTPKGCONFIG cargo:rerun-if-env-changed=PKGCONFIG cargo:rerun-if-env-changed=NIXMAINSTATIC cargo:rerun-if-env-changed=NIXMAINDYNAMIC cargo:rerun-if-env-changed=PKGCONFIGALLSTATIC cargo:rerun-if-env-changed=PKGCONFIGALLDYNAMIC cargo:rerun-if-env-changed=PKGCONFIGPATHx8664-unknown-linux-gnu cargo:rerun-if-env-changed=PKGCONFIGPATHx8664unknownlinuxgnu cargo:rerun-if-env-changed=HOSTPKGCONFIGPATH cargo:rerun-if-env-changed=PKGCONFIGPATH cargo:rerun-if-env-changed=PKGCONFIGLIBDIRx8664-unknown-linux-gnu cargo:rerun-if-env-changed=PKGCONFIGLIBDIRx8664unknownlinuxgnu cargo:rerun-if-env-changed=HOSTPKGCONFIGLIBDIR cargo:rerun-if-env-changed=PKGCONFIGLIBDIR cargo:rerun-if-env-changed=PKGCONFIGSYSROOTDIRx8664-unknown-linux-gnu cargo:rerun-if-env-changed=PKGCONFIGSYSROOTDIRx8664unknownlinuxgnu

cargo:rerun-if-env-changed=HOSTPKGCONFIGSYSROOTDIR cargo:rerun-if-env-changed=PKGCONFIGSYSROOTDIR cargo:rerun-if-env-changed=PKGCONFIGSYSROOTDIR cargo:rerun-if-env-changed=SYSROOT cargo:rerun-if-env-changed=NIXMAINSTATIC cargo:rerun-if-env-changed=NIXMAINDYNAMIC cargo:rerun-if-env-changed=PKGCONFIGALLSTATIC cargo:rerun-if-env-changed=PKGCONFIGALLDYNAMIC cargo:rustc-link-search=native=/nix/store/9r5zb6mdxvlfg6jbjrgld3di3pb18mj9-nix-2.8.0/lib cargo:rustc-link-lib=nixmain cargo:rerun-if-env-changed=PKGCONFIGx8664-unknown-linux-gnu cargo:rerun-if-env-changed=PKGCONFIGx8664unknownlinuxgnu cargo:rerun-if-env-changed=HOSTPKGCONFIG cargo:rerun-if-env-changed=PKGCONFIG cargo:rerun-if-env-changed=NIXMAINSTATIC cargo:rerun-if-env-changed=NIXMAINDYNAMIC cargo:rerun-if-env-changed=PKGCONFIGALLSTATIC cargo:rerun-if-env-changed=PKGCONFIGALLDYNAMIC cargo:rerun-if-env-changed=PKGCONFIGPATHx8664-unknown-linux-gnu cargo:rerun-if-env-changed=PKGCONFIGPATHx8664unknownlinuxgnu cargo:rerun-if-env-changed=HOSTPKGCONFIGPATH cargo:rerun-if-env-changed=PKGCONFIGPATH cargo:rerun-if-env-changed=PKGCONFIGLIBDIRx8664-unknown-linux-gnu cargo:rerun-if-env-changed=PKGCONFIGLIBDIRx8664unknownlinuxgnu cargo:rerun-if-env-changed=HOSTPKGCONFIGLIBDIR cargo:rerun-if-env-changed=PKGCONFIGLIBDIR cargo:rerun-if-env-changed=PKGCONFIGSYSROOTDIRx8664-unknown-linux-gnu cargo:rerun-if-env-changed=PKGCONFIGSYSROOTDIRx8664unknownlinuxgnu cargo:rerun-if-env-changed=HOSTPKGCONFIGSYSROOTDIR cargo:rerun-if-env-changed=PKGCONFIGSYSROOTDIR Found nix version 2.8.

0 TARGET = Some("x8664-unknown-linux-gnu") HOST = Some("x8664-unknown-linux-gnu") CXXx8664-unknown-linux-gnu = Some("/nix/store/58pwclg9yr437h0pfgrnbd0jis8fqasd-gcc-wrapper-11.2.0/bin/c++") CXXFLAGSx8664-unknown-linux-gnu = None CXXFLAGSx8664unknownlinuxgnu = None HOSTCXXFLAGS = None CXXFLAGS = None CRATECCNODEFAULTS = None DEBUG = Some("false") CARGOCFGTARGETFEATURE = Some("fxsr,sse,sse2") running: "/nix/store/58pwclg9yr437h0pfgrnbd0jis8fqasd-gcc-wrapper-11.2.0/bin/c++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-Wall" "-Wextra" "-std=c++17" "-DNIXVER=207" "-o" "/build/source/target/x8664-unknown-linux-gnu/release/build/nix-du-/out/wrapper.o" "-c" "" In lambda function: error: 'requireGcStore' was not declared in this scope cargo:warning= 21 | #define findroots(store) requireGcStore(store).findRoots(false) cargo:warning= | ^~ note: in definition of macro 'findroots' cargo:warning= 21 | #define findroots(store) requireGcStore(store).findRoots(false) cargo:warning= | ^~ exit status: 1 --- stderr error occurred: Command "/nix/store/58pwclg9yr437h0pfgrnbd0jis8fqasd-gcc-wrapper-11.2.0/bin/c++" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64" "-Wall" "-Wextra" "-std=c++17" "-DNIXVER=207" "-o" "/build/source/target/x8664-unknown-linux-gnu/release/build/nix-du-/out/wrapper.o" "-c" "" with args "c++" did not execute successfully (status code exit status: 1). </pre</detailsAdd any other context about the problem here.

<!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --Please run and paste the result.
this is due to nix 2.8, see