[Nix-dev] Re: can't share a store between i686-linux and i686-darwin

Ludovic Courtès ludo at gnu.org
Wed Oct 7 22:15:31 CEST 2009


Hi Peter,

Peter Simons <simons at cryp.to> writes:

>  1) Compile Nix on i686-linux with --disable-old-db-compat, then bootstrap the
>     store with "./nix-env -i nix".
>
>  2) Rsync that store to i686-darwin.
>
>  3) Build nix on Darwin with --disable-init-state --disable-old-db-compat. Use
>     those binaries to run "./nix-env -i nix". Throw in a "nix-store --verify"
>     for good measure.
>
>  4) Rsync that store back to i686-linux.

It’s only /nix/store that’s rsync’d, right?

> Now, "nix-env -i" on Linux no longer works. Packages can be built, but nix-env
> fails to generate the new user environment, claiming that some arbitrary file
> in the newly installed package would collide with a file of the same name in
> the nix package.

Can you post the exact error message?

Interesting experiment.

Thanks,
Ludo’.




More information about the nix-dev mailing list