[Nix-dev] fetching tarballs recursively

Andreas Herrmann andreash87 at gmx.ch
Thu Oct 30 10:27:59 CET 2014


On Thursday 30 October 2014 12:45:09 Sergey Mironov wrote:
> Replacing --import/--export instead of --dump/--restore also leads to
> problems. This time, the error is
> 
> $ cat dump | nix-store --import
> importing path `/nix/store/n69kz335c800n2b6izsjbw60rlnvp87c-binutils-2.23.1.tar.bz2'
> error: imported archive of
> `/nix/store/n69kz335c800n2b6izsjbw60rlnvp87c-binutils-2.23.1.tar.bz2'
> lacks a signature
> 
> what kind of signature does nix-store expect?

I'd be interested in a good answer to this as well. I encountered the same problem in my multi-user install script [1] for a closure of a static bash.

Anyway, my (probably hackish) work-around was to bypass the daemon and write directly to the nix-store by executing

    NIX_DAEMON="" nix-store --import ...

But, I assume that this won't work on NixOS because the store is mounted read-only.

Best, Andreas


[1]: https://github.com/aherrmann/nix-multi-user-install


More information about the nix-dev mailing list