[Nix-dev] Strange problem on NixOS

Nikolay Amiantov ab at fmap.me
Sun Nov 8 13:28:59 CET 2015


I've tried to add several paths to `allowed-impure-host-deps`, but now I
have a new error:

error: while setting up the build environment: getting attributes of
path ‘/usr/lib/libSystem.dylib’: No such file or directory

Which is expected, because I'm on NixOS!

I've managed to solve the problem by downgrading to nixStable from
nixUnstable. I guess this means there's a possible bug in nix -- I've
reported this at https://github.com/NixOS/nix/issues/688.

On 11/08/2015 11:44 AM, Roger Qiu wrote:
> Try https://github.com/NixOS/nixpkgs/issues/10091
> 
> On 07/11/2015 11:44 PM, "Nikolay Amiantov" <ab at fmap.me
> <mailto:ab at fmap.me>> wrote:
> 
>     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.
>     _______________________________________________
>     nix-dev mailing list
>     nix-dev at lists.science.uu.nl <mailto:nix-dev at lists.science.uu.nl>
>     http://lists.science.uu.nl/mailman/listinfo/nix-dev
> 

-- 
Nikolay.


More information about the nix-dev mailing list