nix-community / raspberry-pi-nix

NixOS modules to aid in configuring NixOS for raspberry pi products
MIT License
144 stars 34 forks source link

No such package "uboot_rpi_arm64" in pkgs #20

Closed adminy closed 3 months ago

adminy commented 3 months ago
error: attribute 'uboot_rpi_arm64' missing
┃        at /nix/store/xr38jsjfs9mxinx6b5jizm4g9yzhw6lx-source/rpi/default.nix:100:26:
┃            99|                 TMPFILE="$TARGET_FIRMWARE_DIR/tmp"
┃           100|                 UBOOT="${pkgs.uboot_rpi_arm64}/u-boot.bin"
┃              |                          ^
┃           101|                 KERNEL="${kernel-pkgs.rpi-kernels.latest.kernel}/Image"
┣━━━                                                            
┗━ ∑ ⚠ Exited with 1 errors reported by nix at 00:08:22 after 6s
adminy commented 3 months ago

Turns out having:

specialArgs = { inherit pkgs lib; };

in the flake causes this to behave like this and overwrites the overlays it seems.

Now I'm getting a libcamera error with pybind11 not found:

libcamera> The Meson build system
libcamera> Version: 1.2.3
libcamera> Source dir: /tmp/nix-build-libcamera-0.1.0.drv-0/source
libcamera> Build dir: /tmp/nix-build-libcamera-0.1.0.drv-0/source/build
libcamera> Build type: native build
libcamera> Project name: libcamera
libcamera> Project version: 0.2.0
libcamera> C compiler for the host machine: gcc (gcc 12.3.0 "gcc (GCC) 12.3.0")
libcamera> C linker for the host machine: gcc ld.bfd 2.40
libcamera> C++ compiler for the host machine: g++ (gcc 12.3.0 "g++ (GCC) 12.3.0")
libcamera> C++ linker for the host machine: g++ ld.bfd 2.40
libcamera> Host machine cpu family: aarch64
libcamera> Host machine cpu: aarch64
libcamera> Header "unistd.h" has symbol "issetugid" : NO 
libcamera> Header "locale.h" has symbol "locale_t" : YES 
libcamera> Header "stdlib.h" has symbol "secure_getenv" : YES 
libcamera> Compiler for C supports arguments -Wno-c99-designator: NO 
libcamera> Found pkg-config: /nix/store/abanpwji07p5535gvdkylzw8kssqkfka-pkg-config-wrapper-0.29.2/bin/pkg-config (0.29.2)
libcamera> Run-time dependency lttng-ust found: YES 2.13.6
libcamera> Program ./parser.py found: YES (/tmp/nix-build-libcamera-0.1.0.drv-0/source/utils/ipc/./parser.py)
libcamera> Program ./generate.py found: YES (/tmp/nix-build-libcamera-0.1.0.drv-0/source/utils/ipc/./generate.py)
libcamera> Program ./extract-docs.py found: YES (/tmp/nix-build-libcamera-0.1.0.drv-0/source/utils/ipc/./extract-docs.py)
libcamera> Program ./gen-tp-header.py found: YES (/tmp/nix-build-libcamera-0.1.0.drv-0/source/utils/tracepoints/./gen-tp-header.py)
libcamera> Configuring version.h using configuration
libcamera> Program openssl found: YES (/nix/store/gjc315c1n94aanl0ahy5ar08swpzxh3k-openssl-3.0.13-bin/bin/openssl)
libcamera> Library atomic found: YES
libcamera> Run-time dependency threads found: YES
libcamera> Did not find CMake 'cmake'
libcamera> Found CMake: NO
libcamera> Run-time dependency libdw found: NO (tried pkgconfig and cmake)
libcamera> Run-time dependency libunwind found: NO (tried pkgconfig and cmake)
libcamera> Header "execinfo.h" has symbol "backtrace" : YES 
libcamera> Library rt found: YES
libcamera> Run-time dependency libpisp found: YES 1.0.5
libcamera> Checking for function "dlopen" : YES 
libcamera> Run-time dependency libudev found: YES 254
libcamera> Run-time dependency yaml-0.1 found: YES 0.2.5
libcamera> Run-time dependency gnutls found: NO (tried pkgconfig and cmake)
libcamera> Run-time dependency libcrypto found: YES 3.0.13
libcamera> Dependency libexif skipped: feature android disabled
libcamera> Dependency libjpeg skipped: feature android disabled
libcamera> Run-time dependency libevent_pthreads found: YES 2.1.12-stable
libcamera> Run-time dependency libtiff-4 found: NO (tried pkgconfig and cmake)
libcamera> Dependency gtest skipped: feature lc-compliance disabled
libcamera> Run-time dependency libdrm found: YES 2.4.118
libcamera> Run-time dependency libjpeg found: NO (tried pkgconfig and cmake)
libcamera> sdl2-config found: NO
libcamera> Run-time dependency sdl2 found: NO (tried pkgconfig, config-tool and cmake)
libcamera> Dependency qt5 (modules: Core, Gui, Widgets) skipped: feature qcam disabled
libcamera> Run-time dependency glib-2.0 found: YES 2.78.4
libcamera> Run-time dependency gstreamer-video-1.0 found: YES 1.22.8
libcamera> Run-time dependency gstreamer-allocators-1.0 found: YES 1.22.8
libcamera> Run-time dependency python3 found: YES 3.11
libcamera> pybind11-config found: NO
libcamera> Run-time dependency pybind11 found: NO (tried pkgconfig and config-tool)
libcamera> 
libcamera> src/py/libcamera/meson.build:10:15: ERROR: Dependency "pybind11" not found, tried pkgconfig and config-tool
libcamera> 
libcamera> A full log can be found at /tmp/nix-build-libcamera-0.1.0.drv-0/source/build/meson-logs/meson-log.txt
error: builder for '/nix/store/na42rz0zqmqil2ciy1b5sf72hrrba3bv-libcamera-0.1.0.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/ghsq9l3j0fd47qh8ak31l26npr2cgwf9-pipewire-1.0.1.drv' failed to build
error: 1 dependencies of derivation '/nix/store/akdsvzykq2c1h4wicyvva5f3q9na6rg8-system-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/rg5nr2qhhcgb15qi42wcvdjj1daniig4-nixos-system-box-8-24.05.drv' failed to build
python3-3.11.8-env> building '/nix/store/rbys9yqhar66bsiv32fdlgx38v3rmpx1-python3-3.11.8-env.drv'
error: 1 dependencies of derivation '/nix/store/j3pkrxbvh344k28y2vlg2qyc1gc7zxqx-ext4-fs.img.zst.drv' failed to build
error: 1 dependencies of derivation '/nix/store/sicfx4r1hbc5i10dxcnra18iapi7c9p9-nixos-sd-image-24.05-aarch64-linux.img.drv' failed to build