DavHau / nix-portable

Nix - Static, Permissionless, Installation-free, Pre-configured
MIT License
870 stars 31 forks source link

enumerating /nix/store/... paths fails #1

Closed DavHau closed 3 years ago

DavHau commented 3 years ago

Currently nix builds don't work. ls operations fail during builds.

To reproduce, execute nix-portable inside a debian docker container:

docker run --rm -v $(pwd)/nix-portable:/nix-portable -it debian

inside the container execute any build:

/nix-portable nix build --impure --expr "(import <nixpkgs> {}).hello.overrideAttrs (_:{abc=1;})"

It fails with:

error: builder for '/nix/store/msj4z165q92hgik21g6r2gp6chy9wjyn-hello-2.10.drv' failed with exit code 1;
       last 10 log lines:
       > patching sources
       > configuring
       > configure flags: --disable-dependency-tracking --prefix=/nix/store/p83nw19z0437nfsfh34lyi01lnvn9yy2-hello-2.10
       > checking for a BSD-compatible install... /nix/store/0y7rv26ffa359wvqd3js94cn73z882fg-coreutils-8.32/bin/install -c
       > checking whether build environment is sane... ls: cannot access './configure': No such file or directory
       > ls: cannot access 'conftest.file': No such file or directory
       > configure: error: ls -t appears to fail.  Make sure there is not a broken
       >   alias in your environment
       > configure: error: newly created file is older than distributed files!
       > Check your system clock
       For full logs, run 'nix log /nix/store/msj4z165q92hgik21g6r2gp6chy9wjyn-hello-2.10.drv'.
DavHau commented 3 years ago

Solved since version 001