Describe the bug
I have neovim in my systemPackages, I did nix-channel --update and nixos-rebuild switch today and it stuck at building luajit:
To Reproduce
Steps to reproduce the behavior:
- Add
neovim to environment.systemPackages
- Run
nix-channel --update
- Run
nixos-rebuild switch
Expected behavior
The system should upgrade properly.
Additional context
Output:
# nixos-rebuild switch
building Nix...
building the system configuration...
these derivations will be built:
/nix/store/r1r1sprc1r1yb29w17vfyfnmi2r09zjv-luajit-2.1.0-beta3-luv-1.34.1-1.drv
/nix/store/0xasdnwd3fvxzl7qrs2zf5wsh2f86yrj-neovim-unwrapped-0.4.3.drv
/nix/store/6v9iv9jrlwik9a3m5v4hn6gwhph1sc27-neovim-0.4.3.drv
/nix/store/chlys5ihvxllkfdrpdxrssgfycyjwlb3-system-path.drv
/nix/store/knjjhw14i55dnb0f34k9lxjks4hkr8jz-unit-polkit.service.drv
/nix/store/ys2y4qjp6x78813l7zjr0iyfd2p2l2c6-dbus-1.drv
/nix/store/nc4fxkfdmkr9vdhp1divs0w72l12q2ij-unit-dbus.service.drv
/nix/store/wbdxd6s8vbhv8yi3hpv2l4bqb4h67c9n-unit-systemd-fsck-.service.drv
/nix/store/0x79iyhxplm1jajiffzkhpklrsvkblfb-system-units.drv
/nix/store/an5xzvddamzanbh8800bn3c6pvg6aa2b-unit-dbus.service.drv
/nix/store/yyaj6djyh21lrqsv6aiban63q1c2y8xz-user-units.drv
/nix/store/kkhv203dzw38y5lsb1c8h9mdskklnlxf-etc.drv
/nix/store/xdifd63sygqxswwh67vm1dyh95dl72yn-nixos-system-DCHORUS-LEGION-NIXOS-20.09pre213994.e2b4abe3c8f.drv
building '/nix/store/r1r1sprc1r1yb29w17vfyfnmi2r09zjv-luajit-2.1.0-beta3-luv-1.34.1-1.drv'...
unpacking sources
unpacking source archive /nix/store/f0az73f8fi7fp7cz55iapzwr0wh1kd93-luv-1.34.1-1.src.rock
Done. You may now enter directory
luv-1.34.1-1/luv-1.34.1-1
and type 'luarocks make' to build.
source root is ./luv-1.34.1-1/luv-1.34.1-1
setting SOURCE_DATE_EPOCH to timestamp 1579323846 of file ./luv-1.34.1-1/luv-1.34.1-1/src/work.c
patching sources
configuring
building
patching script interpreter paths in .
./deps/lua-compat-5.3/tests/test.lua: interpreter directive changed from "/usr/bin/env lua" to "/nix/store/zhsgiagaqx27hp5j94hy6i46rv3gnh75-luajit-2.1.0-beta3/bin/lua"
installing
luv 1.34.1-1 depends on lua >= 5.1 (5.1-1 provided by VM)
Warning: unmatched variable LUA_LIBDIR
-- The C compiler identification is GNU 9.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /nix/store/fqhjxf9ii4w4gqcsx59fyw2vvj91486a-gcc-wrapper-9.2.0/bin/gcc
-- Check for working C compiler: /nix/store/fqhjxf9ii4w4gqcsx59fyw2vvj91486a-gcc-wrapper-9.2.0/bin/gcc
-- Check for working C compiler: /nix/store/fqhjxf9ii4w4gqcsx59fyw2vvj91486a-gcc-wrapper-9.2.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found LIBUV: /nix/store/gk304dpcw0x4fx7vp3di9v1lv9s8rhdc-libuv-1.34.2/lib/libuv.so
-- Lua: using information from luarocks
-- LUA_LIBDIR:
-- LUA_INCDIR: /nix/store/zhsgiagaqx27hp5j94hy6i46rv3gnh75-luajit-2.1.0-beta3/include/luajit-2.1
-- LUA: /nix/store/zhsgiagaqx27hp5j94hy6i46rv3gnh75-luajit-2.1.0-beta3/bin/luajit
-- Lua library: LUA_LIBRARIES-NOTFOUND
-- Configuring done
-- Generating done
-- Build files have been written to: /build/luv-1.34.1-1/luv-1.34.1-1/build.luarocks
Scanning dependencies of target luv
[ 50%] Building C object CMakeFiles/luv.dir/src/luv.c.o
[100%] Linking C shared library libluv.so
[100%] Built target luv
[100%] Built target luv
Install the project...
-- Install configuration: ""
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so.1.34.1
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so.1
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/pkgconfig/libluv.pc
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/include/luv/luv.h
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/include/luv/util.h
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/include/luv/lhandle.h
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/include/luv/lreq.h
cp: cannot stat '/nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so': No such file or directory
Error: Failed copying /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so to /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/lib/lua/5.1/libluv.so
builder for '/nix/store/r1r1sprc1r1yb29w17vfyfnmi2r09zjv-luajit-2.1.0-beta3-luv-1.34.1-1.drv' failed with exit code 1
cannot build derivation '/nix/store/0xasdnwd3fvxzl7qrs2zf5wsh2f86yrj-neovim-unwrapped-0.4.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6v9iv9jrlwik9a3m5v4hn6gwhph1sc27-neovim-0.4.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/chlys5ihvxllkfdrpdxrssgfycyjwlb3-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xdifd63sygqxswwh67vm1dyh95dl72yn-nixos-system-DCHORUS-LEGION-NIXOS-20.09pre213994.e2b4abe3c8f.drv': 1 dependencies couldn't be built
error: build of '/nix/store/xdifd63sygqxswwh67vm1dyh95dl72yn-nixos-system-DCHORUS-LEGION-NIXOS-20.09pre213994.e2b4abe3c8f.drv' failed
Metadata
- system:
"x86_64-linux"
- host os:
Linux 5.4.20, NixOS, 20.09pre213994.e2b4abe3c8f (Nightingale)
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Nix) 2.3.3
- channels(root):
"nixos-20.09pre213994.e2b4abe3c8f"
- channels(kj):
""
- nixpkgs:
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
Describe the bug
I have neovim in my systemPackages, I did
nix-channel --updateandnixos-rebuild switchtoday and it stuck at building luajit:To Reproduce
Steps to reproduce the behavior:
neovimtoenvironment.systemPackagesnix-channel --updatenixos-rebuild switchExpected behavior
The system should upgrade properly.
Additional context
Output:
Metadata
"x86_64-linux"Linux 5.4.20, NixOS, 20.09pre213994.e2b4abe3c8f (Nightingale)yesyesnix-env (Nix) 2.3.3"nixos-20.09pre213994.e2b4abe3c8f"""/nix/var/nix/profiles/per-user/root/channels/nixosMaintainer information: