Package Details: nixd 2.9.1-1

Git Clone URL: https://aur.archlinux.org/nixd.git (read-only, click to copy)
Package Base: nixd
Description: Nix language server
Upstream URL: https://github.com/nix-community/nixd
Licenses: LGPL3
Submitter: Freed
Maintainer: Kharec
Last Packager: Kharec
Votes: 4
Popularity: 0.23
First Submitted: 2023-12-04 22:34 (UTC)
Last Updated: 2026-05-04 13:42 (UTC)

Latest Comments

FlashOnFire commented on 2026-03-23 14:21 (UTC) (edited on 2026-03-23 14:22 (UTC) by FlashOnFire)

Package seems to be broken:

INFO: calculating backend command to run: /usr/bin/ninja -C /home/flashonfire/.cache/yay/nixd/src/nixd-2.9.0/build
ninja: Entering directory `/home/flashonfire/.cache/yay/nixd/src/nixd-2.9.0/build'
[25/107] Compiling C++ object libnixf/src/PrimOpsInfo.p/Basic_PrimOpsInfoGen.cpp.o
../libnixf/src/Basic/PrimOpsInfoGen.cpp: In function ‘int main(int, char**)’:
../libnixf/src/Basic/PrimOpsInfoGen.cpp:7:15: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |   std::freopen(argv[1], "w", stdout);
      |   ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
[85/107] Compiling C++ object nixd/lib/libnixd.so.p/Eval_AttrSetProvider.cpp.o
FAILED: [code=1] nixd/lib/libnixd.so.p/Eval_AttrSetProvider.cpp.o 
c++ -Inixd/lib/libnixd.so.p -Inixd/lib -I../nixd/lib -I../nixd/include -I../nixd/lspserver/include -I../libnixf/include -I../libnixt/include -Ilibnixf/src -I/usr/include -I/usr/include/libcpuid -I/home/flashonfire/.cache/yay/nixd/src/nixd-2.9.0/build -fdiagnostics-color=always -D_GLIBCXX_ASSERTIONS=1 -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -std=gnu++20 -O3 -Werror=pragma-once-outside-header -Wno-unused-parameter -Wno-missing-field-initializers -Wno-return-type -Wno-maybe-uninitialized -Wno-unused-variable -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -g -ffile-prefix-map=/home/flashonfire/.cache/yay/nixd/src=/usr/src/debug/nixd -flto=auto -fPIC -std=c++23 -std=c++23 -std=c++23 -std=c++23 -DBLAKE3_DLL -DBLAKE3_USE_TBB -DBOOST_ALL_NO_LIB -pthread -D_GNU_SOURCE -D_GLIBCXX_USE_CXX11_ABI=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -MD -MQ nixd/lib/libnixd.so.p/Eval_AttrSetProvider.cpp.o -MF nixd/lib/libnixd.so.p/Eval_AttrSetProvider.cpp.o.d -o nixd/lib/libnixd.so.p/Eval_AttrSetProvider.cpp.o -c ../nixd/lib/Eval/AttrSetProvider.cpp
../nixd/lib/Eval/AttrSetProvider.cpp: In function ‘nixd::ValueMeta {anonymous}::metadataOf(nix::EvalState&, nix::Value&)’:
../nixd/lib/Eval/AttrSetProvider.cpp:69:21: error: no matching function for call to ‘nix::Value::type(bool)’
   69 |       .Type = V.type(true),
      |               ~~~~~~^~~~~~
../nixd/lib/Eval/AttrSetProvider.cpp:69:21: note: there is 1 candidate
In file included from ../nixd/include/nixd/Protocol/AttrSet.h:20,
                 from ../nixd/include/nixd/Eval/AttrSetProvider.h:20,
                 from ../nixd/lib/Eval/AttrSetProvider.cpp:1:
/usr/include/nix/expr/value.hh:1139:22: note: candidate 1: ‘template<bool invalidIsThunk> nix::ValueType nix::Value::type() const’
 1139 |     inline ValueType type() const
      |                      ^~~~
/usr/include/nix/expr/value.hh:1139:22: note: candidate expects 0 arguments, 1 provided
../nixd/lib/Eval/AttrSetProvider.cpp:71:3: error: could not convert ‘{<expression error>, {anonymous}::locationOf(State.nix::EvalState::positions, (* & V))}’ from ‘<brace-enclosed initializer list>’ to ‘nixd::ValueMeta’
   71 |   };
      |   ^
      |   |
      |   <brace-enclosed initializer list>
[86/107] Compiling C++ object nixd/lib/libnixd.so.p/Eval_Launch.cpp.o
../nixd/lib/Eval/Launch.cpp: In lambda function:
../nixd/lib/Eval/Launch.cpp:27:12: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   27 |     freopen(Name.c_str(), "w", stderr);
      |     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
[94/107] Compiling C++ object libnixf/test/unit-libnixf-sema.p/Sema_VariableLookup.cpp.o
ninja: build stopped: subcommand failed.
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: nixd-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
nixd - exit status 4

Freed commented on 2024-10-08 07:47 (UTC) (edited on 2024-10-08 07:47 (UTC) by Freed)

Hi, @carbolymer.

https://github.com/nix-community/nixd/blob/main/flake.nix#L36 needs nix 2.19. The latest nix is 2.24. This package have been broken. We can:

  1. package nix 2.19 to AUR
  2. wait the upstream to upgrade their dependence.

carbolymer commented on 2024-08-02 11:12 (UTC)

2.3.0 is out. Any chance to upgrade this package?