[Nix-dev] Strange problem on NixOS

Nikolay Amiantov ab at fmap.me
Sat Nov 7 13:44:20 CET 2015


Hi all,

I've stumbled across a strange error while trying to do nix-env -i or -e
operations, or nix-channel --upgrade.

> nix-env -e '*'
uninstalling ‘xdpyinfo-1.3.2’
building path(s)
‘/nix/store/jrbwvxmdri2d78i4i116if3576rv7v0d-user-environment’
error: derivation
'/nix/store/91b7iz62lv7i5a6pli9js086ixx6z169-user-environment.drv'
requested impure path ‘/usr/lib/libSystem.dylib’, but it was not in
allowed-impure-host-deps (‘/bin/usr/bin’)

> sudo nix-channel --update
downloading Nix expressions from
‘https://nixos.org/releases/nixos/unstable/nixos-16.03pre71289.7ae05ed//nixexprs.tar.xz’...
downloading
‘https://nixos.org/releases/nixos/unstable/nixos-16.03pre71289.7ae05ed//nixexprs.tar.xz’...
[0 [6912/6937 KiB, 1348.1 KiB/s]
unpacking channels...
error: derivation
'/nix/store/gkjgjnwhzvjmmk1041wycq8hfmz0v70g-user-environment.drv'
requested impure path ‘/usr/lib/libSystem.dylib’, but it was not in
allowed-impure-host-deps (‘/bin/usr/bin’)
cannot unpack the channels at /run/current-system/sw/bin/nix-channel
line 169.

Any ideas? This seems very strange to me, libSystem is something OS
X'ish if I remember correctly -- why would it even show itself?

-- 
Nikolay.


More information about the nix-dev mailing list