NixOS / nixos-search

Search NixOS packages and options
https://search.nixos.org
MIT License
384 stars 98 forks source link

input-leap installation error #772

Closed fe2-Nyxar closed 1 month ago

fe2-Nyxar commented 2 months ago

I tried install input-leap by declaring it like any other program in configuration.nix file, but it keeps giving me this error:

....
[ 83%] Building CXX object src/lib/platform/CMakeFiles/platform.dir/EiScreen.cpp.o
[ 83%] Building CXX object src/lib/platform/CMakeFiles/platform.dir/PortalInputCapture.cpp.o
[ 84%] Building CXX object src/lib/platform/CMakeFiles/platform.dir/PortalRemoteDesktop.cpp.o
/build/source/src/lib/platform/EiEventQueueBuffer.cpp: In member function 'virtual void inputleap::EiEventQueueBuffer::waitForEvent(double)':
/build/source/src/lib/platform/EiEventQueueBuffer.cpp:99:17: warning: ignoring return value of 'ssize_t read(int, void*, size_t)' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result8;;]
   99 |             read(pipe_r_, buf, sizeof(buf)); // discard
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
/build/source/src/lib/platform/EiEventQueueBuffer.cpp: In member function 'virtual bool inputleap::EiEventQueueBuffer::addEvent(uint32_t)':
/build/source/src/lib/platform/EiEventQueueBuffer.cpp:141:10: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wunused-result-Wunused-result8;;]
  141 |     write(pipe_w_, "!", 1);
      |     ~~~~~^~~~~~~~~~~~~~~~~
[ 84%] Linking CXX executable ../../bin/input-leap
/build/source/src/lib/platform/PortalRemoteDesktop.cpp: In member function 'void inputleap::PortalRemoteDesktop::cb_session_started(GObject*, GAsyncResult*)':
/build/source/src/lib/platform/PortalRemoteDesktop.cpp:122:36: error: too few arguments to function 'int xdp_session_connect_to_eis(XdpSession*, GError**)'
  122 |     fd = xdp_session_connect_to_eis(session);
      |          ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /nix/store/gafrw30lmknz9x9h94fpdbvm6s325cv9-libportal-0.7.1-dev/include/libportal/portal.h:35,
                 from /build/source/src/./lib/platform/PortalRemoteDesktop.h:26,
                 from /build/source/src/lib/platform/PortalRemoteDesktop.cpp:18:
/nix/store/gafrw30lmknz9x9h94fpdbvm6s325cv9-libportal-0.7.1-dev/include/libportal/remote.h:203:11: note: declared here
  203 | int       xdp_session_connect_to_eis    (XdpSession  *session,
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [src/lib/platform/CMakeFiles/platform.dir/build.make:370: src/lib/platform/CMakeFiles/platform.dir/PortalRemoteDesktop.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 84%] Built target input-leap
[ 84%] Linking CXX executable ../../bin/guiunittests
make[1]: *** [CMakeFiles/Makefile2:667: src/lib/platform/CMakeFiles/platform.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 84%] Built target guiunittests
make: *** [Makefile:166: all] Error 2
error: builder for '/nix/store/a3hanpmg44ckw24kicm6yaw5fqayx3bx-input-leap-unstable-2023-05-24.drv' failed with exit code 2
error: 1 dependencies of derivation '/nix/store/7zrrz7sgknsyp1p0nxzkkmn6i2zaw88d-input-leap-unstable-2023-05-24_fish-completions.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9bdzyaicarmjr7fvgn2kb8pckzwfwkh1-man-paths.drv' failed to build
error: 1 dependencies of derivation '/nix/store/4h677rjd20kah2hy5mhp39dc2r73qw80-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/qcd3m9ls1hipflvnnyix8wssq9laa5vm-nixos-system-nixos-23.11.7071.71bae31b7dbc.drv' failed to build
dasJ commented 1 month ago

This is not really related to the search and also fixed by https://github.com/NixOS/nixpkgs/pull/313025