these 6 derivations will be built: /nix/store/hvkjnjj90qhh7zw5fvar489ij7a8vbdk-vendor-registry.drv /nix/store/vmdmwq1p5vjg3xsxjpgbkfsbhzik1m8l-vendor-cargo-deps.drv /nix/store/k7rwpq1i2ai9hqw7kmsfc5cmivk92ils-Cargo.toml.drv /nix/store/z86lknncg4ndig66lvixdrmdyk8vqvc5-source.drv /nix/store/wm8h0lqy37a8sx2qa58cvyi8fnprjhkr-herdr-eternal-deps-0.1.0.drv /nix/store/8f3mwk8b535n2zk4hvhq2v2fgzzqhc7f-herdr-eternal-0.1.0.drv error: Cannot build '/nix/store/8f3mwk8b535n2zk4hvhq2v2fgzzqhc7f-herdr-eternal-0.1.0.drv'. Reason: builder failed with exit code 101. Output paths: /nix/store/7y3mw1br60ifffz8ivp33aql6w0jvgzw-herdr-eternal-0.1.0 Last 25 log lines: > and 51 others > note: required by a bound in `nix::unistd::dup2` > --> /nix/store/czdg2k7mk1nhlppga1fxg7p4kjrzvz70-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/nix-0.31.3/src/unistd.rs:543:17 > | > 543 | pub fn dup2(oldfd: Fd, newfd: &mut std::os::fd::OwnedFd) -> Result<()> { > | ^^^^^^^^^^^^^^^^^ required by this bound in `dup2` > > error[E0308]: mismatched types > --> server/src/lib.rs:742:40 > | > 742 | nix::unistd::dup2(exit_fd, 3) > | ----------------- ^ expected `&mut OwnedFd`, found integer > | | > | arguments to this function are incorrect > | > note: function defined here > --> /nix/store/czdg2k7mk1nhlppga1fxg7p4kjrzvz70-vendor-cargo-deps/c19b7c6f923b580ac259164a89f2577984ad5ab09ee9d583b888f934adbbe8d0/nix-0.31.3/src/unistd.rs:543:8 > | > 543 | pub fn dup2(oldfd: Fd, newfd: &mut std::os::fd::OwnedFd) -> Result<()> { > | ^^^^ > > Some errors have detailed explanations: E0277, E0308. > For more information about an error, try `rustc --explain E0277`. > error: could not compile `herdr-eternal-server` (lib) due to 2 previous errors > warning: build failed, waiting for other jobs to finish... For full logs, run: nix log /nix/store/8f3mwk8b535n2zk4hvhq2v2fgzzqhc7f-herdr-eternal-0.1.0.drv