I've configured a system using the nix-daemon with "build-use-chroot = true"
and came across the following problem (using the unstable packages)
[tyson@test-centos6 .nixpkgs]$ nix-env -iA nixpkgs.texinfo4
installing ‘texinfo-4.13a’
these derivations will be built:
/nix/store/zng3jwybhn7cj2qagsl
On NixOS, nix is configured to not only provide the chroot but also /bin/sh
compatability. This is fixed in nix 1.9 so I recommend just using the
unstable version of nix as it should just work.
On Apr 27, 2015 11:42 AM, "Tyson Whitehead" wrote:
> I've configured a system using the nix-daemon with
I upgraded to nixUnstable (nix-1.9pre4074_e659978) but it does not seem to have
resolved this issue
1 - installed the nixpkgs.nixUnstable (nix-1.9pre4074_e659978) package,
2 - switched the default system profile over to it,
3 - restarted the nix-daemon so it is running 1.9
[root@test-centos6:~]
Hi Tyson,
many packages depend on /bin/sh in one way or another. Remedying that
impurity is a huge effort that's probably characterized best as
"on-going". For the time being, we work around this problem by providing a
/bin/sh in the chroot environment through the following /etc/nix/nix.conf
confi
I switch to the nixos-unstable channel as I noticed the nixpkgs-unstable last
update was March 22nd.
http://nixos.org/channels/
Installed the nixpkgs.pkgs.nixUnstable (nix-1.9pre4088_1711679) from this and
it seems to have resolved the issue.
Thanks! -Tyson
On April 27, 2015 15:13:22 Tyson W