RedoxOS: Trying to build with `podman` fails

Hi! So I’m trying to write a flake.nix for nix users, so you can contribute to RedoxOS by building it with podman.

Here’s the flake:

{
  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
    rust-overlay.url = "github:oxalica/rust-overlay";
    flake-parts.url = "github:hercules-ci/flake-parts";
  };

  outputs = inputs@{ flake-parts, ... }:
    flake-parts.lib.mkFlake { inherit inputs; } {
      systems = [ "x86_64-linux" "aarch64-linux" ];

      perSystem = { self', pkgs, system, lib, ... }: {
        _module.args.pkgs = import inputs.nixpkgs {
          inherit system;
          overlays = with inputs; [
            rust-overlay.overlays.default
          ];
        };

        devShells = {
          default = self'.devShells.podman;

          podman =
            let
              rust-toolchain = pkgs.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml;
            in
            pkgs.mkShell rec {
              packages = with pkgs; [
                git
                podman
                fuse3
                qemu
                gnumake
                wget
              ] ++ [ rust-toolchain ];

              LD_LIBRARY_PATH = "${lib.makeLibraryPath packages}";
            };
        };
      };
    };
}

Now, if I run make all I’m getting the following error message:

e[0me[0me[1me[36m    Buildinge[0m [======================>  ] 100/105: kill(bin), chown(bin), df(bin), free(bin), uptime(bin)                                                                                       
e[Ke[0me[0me[1me[33mwarninge[0me[1m:e[0m `coreutils` (bin "df") generated 1 warning
e[0me[0me[1me[31merrore[0me[1m:e[0m could not compile `coreutils` (bin "df") due to previous error; 1 warning emitted
e[0me[0me[1me[36m    Buildinge[0m [=======================> ] 101/105: kill(bin), chown(bin), free(bin), uptime(bin)                                                                                                
e[Ke[0me[1me[38;5;9merrore[0me[0me[1m: linking with `x86_64-unknown-redox-gcc` failed: exit status: 1e[0m
e[0m  e[0me[0me[1me[38;5;12m|e[0m
e[0m  e[0me[0me[1me[38;5;12m= e[0me[0me[1mnotee[0me[0m: LC_ALL="C" PATH="/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-linux-gnu/bin:/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/bin:/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/bin:/mnt/redox/cookbook/bin:/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/bin:/mnt/redox/cookbook/bin:/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/bin:/home/poduser/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "x86_64-unknown-redox-gcc" "-m64" "/tmp/rustcO1QRnT/symbols.o" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/free-bdab17434a182532.free.34bee6fc5bc9cb33-cgu.0.rcgu.o" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/free-bdab17434a182532.free.34bee6fc5bc9cb33-cgu.1.rcgu.o" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/free-bdab17434a182532.free.34bee6fc5bc9cb33-cgu.2.rcgu.o" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/free-bdab17434a182532.free.34bee6fc5bc9cb33-cgu.3.rcgu.o" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/free-bdab17434a182532.free.34bee6fc5bc9cb33-cgu.4.rcgu.o" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/free-bdab17434a182532.free.34bee6fc5bc9cb33-cgu.5.rcgu.o" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/free-bdab17434a182532.33oeunsh3g45xgkp.rcgu.o" "-Wl,--as-needed" "-L" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps" "-L" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/release/deps" "-L" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/x86_64-unknown-redox/lib" "-L" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib" "-Wl,-Bstatic" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/liblibredox-fb7dea7d97480d5e.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/libcoreutils-b3a382a889baa080.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/libextra-be67ac4cea681260.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/libtermion-8e4625e9ae3a71cc.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/libredox_termios-9d36bd3742215a6d.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/liblibredox-7af876bc2c9873c6.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/liblibc-9a12240cac5c91c5.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/libsyscall-3c82076c20a7ac36.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/libbitflags-978f374b0bc1cf78.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/libnumtoa-aab60d8ad389ff50.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/libarg_parser-c95a7d257dd23bc1.rlib" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/libanyhow-7a8610e5097e7a44.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libstd-80502f6604fcf7f5.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libpanic_unwind-79a01f4415affbe6.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libobject-30992d25165e4457.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libmemchr-82cdef1af99f91cb.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libaddr2line-85508367d501823d.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libgimli-4c26777986ee9b40.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/librustc_demangle-4f702d27ed5f089e.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libstd_detect-4a9a14bba9950415.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libhashbrown-1751746b843de8ee.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/librustc_std_workspace_alloc-0bbdfaa11c795f5a.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libminiz_oxide-25be2792f99f0108.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libadler-5b768f42a24389ec.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libunwind-463a8800ba1cc805.rlib" "-lgcc_eh" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libcfg_if-26f0b87446bbf4a9.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/liblibc-02898c8be6ad9ae1.rlib" "-lc" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/liballoc-6bb5bb8d6d34dae8.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/librustc_std_workspace_core-3da53e752cb7db28.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libcore-50c29615f7498eed.rlib" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib/libcompiler_builtins-f095a6be62e5c4a2.rlib" "-Wl,-Bdynamic" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/mnt/redox/prefix/x86_64-unknown-redox/relibc-install/lib/rustlib/x86_64-unknown-redox/lib" "-o" "/mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/free-bdab17434a182532" "-Wl,--gc-sections" "-static" "-no-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-nodefaultlibs"e[0m
e[0m  e[0me[0me[1me[38;5;12m= e[0me[0me[1mnotee[0me[0m: /mnt/redox/prefix/x86_64-unknown-redox/relibc-install/bin/../lib/gcc/x86_64-unknown-redox/13.2.0/../../../../x86_64-unknown-redox/bin/ld: /mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/liblibredox-fb7dea7d97480d5e.rlib(libredox-fb7dea7d97480d5e.libredox.c4e488c47a6a5deb-cgu.0.rcgu.o): in function `<libredox::error::Error as core::fmt::Display>::fmt':e[0m
e[0m          libredox.c4e488c47a6a5deb-cgu.0:(.text._ZN61_$LT$libredox..error..Error$u20$as$u20$core..fmt..Display$GT$3fmt17hd4227a2babe3fe9cE+0xa2): undefined reference to `redox_strerror_v1'e[0m
e[0m          /mnt/redox/prefix/x86_64-unknown-redox/relibc-install/bin/../lib/gcc/x86_64-unknown-redox/13.2.0/../../../../x86_64-unknown-redox/bin/ld: /mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/liblibredox-fb7dea7d97480d5e.rlib(libredox-fb7dea7d97480d5e.libredox.c4e488c47a6a5deb-cgu.0.rcgu.o): in function `<libredox::error::Error as core::fmt::Debug>::fmt':e[0m
e[0m          libredox.c4e488c47a6a5deb-cgu.0:(.text._ZN59_$LT$libredox..error..Error$u20$as$u20$core..fmt..Debug$GT$3fmt17hfb336b324c752508E+0xaa): undefined reference to `redox_strerror_v1'e[0m
e[0m          collect2: error: ld returned 1 exit statuse[0m
e[0m          e[0m
e[0m  e[0me[0me[1me[38;5;12m= e[0me[0me[1mnotee[0me[0m: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specifiede[0m
e[0m  e[0me[0me[1me[38;5;12m= e[0me[0me[1mnotee[0me[0m: use the `-l` flag to specify native libraries to linke[0m
e[0m  e[0me[0me[1me[38;5;12m= e[0me[0me[1mnotee[0me[0m: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname)e[0m

(Error trimmed down due to the post-character-limit.)

TL;DR:

          libredox.c4e488c47a6a5deb-cgu.0:(.text._ZN61_$LT$libredox..error..Error$u20$as$u20$core..fmt..Display$GT$3fmt17hd4227a2babe3fe9cE+0xa2): undefined reference to `redox_strerror_v1'
          /mnt/redox/prefix/x86_64-unknown-redox/relibc-install/bin/../lib/gcc/x86_64-unknown-redox/13.2.0/../../../../x86_64-unknown-redox/bin/ld: /mnt/redox/cookbook/recipes/core/coreutils/target/x86_64-unknown-redox/build/target/x86_64-unknown-redox/release/deps/liblibredox-fb7dea7d97480d5e.rlib(libredox-fb7dea7d97480d5e.libredox.c4e488c47a6a5deb-cgu.0.rcgu.o): in function `<libredox::error::Error as core::fmt::Debug>::fmt':
          libredox.c4e488c47a6a5deb-cgu.0:(.text._ZN59_$LT$libredox..error..Error$u20$as$u20$core..fmt..Debug$GT$3fmt17hfb336b324c752508E+0xaa): undefined reference to `redox_strerror_v1'
          collect2: error: ld returned 1 exit status

does anyone know how to fix that?