Skip to content

Nix Build Failed #460

@alrawas

Description

@alrawas

Building from the extracted tar.gz release

nix --version: nix (Nix) 2.32.0

> swayfx-0.5.2 nix build

error: Cannot build '/nix/store/55xbwkqcsxapyb03y0s7svi8l3qlndl9-scenefx-0.1.0-git.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/6q3kfsjrdqy7z2j507aa4980ggi57872-scenefx-0.1.0-git-lib
         /nix/store/miw82pw0wry2l9r6khsqjz54ymsrnkl6-scenefx-0.1.0-git
       Last 25 log lines:
       > Compiler for C supports arguments -Wmissing-prototypes: YES
       > Compiler for C supports arguments -Walloca: YES
       > Compiler for C supports arguments -Wno-missing-braces: YES
       > Compiler for C supports arguments -Wno-missing-field-initializers: YES
       > Compiler for C supports arguments -Wno-unused-parameter: YES
       > Compiler for C supports arguments -fmacro-prefix-map=/prefix/to/hide=: YES
       > Found pkg-config: YES (/nix/store/h5khrpnjj3fb182sc32fx1z75w0lhksy-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
       > Run-time dependency wayland-server found: YES 1.23.1
       > Run-time dependency wlroots-0.18 found: YES 0.18.2
       > Run-time dependency libdrm found: YES 2.4.124
       > Run-time dependency xkbcommon found: YES 1.10.0
       > Run-time dependency pixman-1 found: YES 0.46.0
       > Library m found: YES
       > Library rt found: YES
       > Run-time dependency wayland-protocols found: YES 1.44
       > Build-time dependency wayland-scanner found: YES 1.23.1
       > Program /nix/store/8zbf8qmxvkpmgrrfjlgc08xc6zw6aidy-wayland-scanner-1.23.1-bin/bin/wayland-scanner found: YES (/nix/store/8zbf8qmxvkpmgrrfjlgc08xc6zw6aidy-wayland-scanner-1.23.1-bin/bin/wayland-scanner)
       > Run-time dependency egl found: YES 1.5
       > Fetching value of define "EGL_EGLEXT_VERSION" with dependency egl: 20211210
       > Found CMake: /nix/store/dx4bdrs7mq3jfviqhszrc7l35ps9kg64-cmake-3.31.7/bin/cmake (3.31.7)
       > Run-time dependency gbm found: NO (tried pkgconfig and cmake)
       >
       > render/fx_renderer/meson.build:36:7: ERROR: Dependency "gbm" not found, tried pkgconfig and cmake
       >
       > A full log can be found at /nix/var/nix/builds/nix-26965-3119539077/d05fqz74m5i4z8x9jbd6gbzdmws8wf96-source/build/meson-logs/meson-log.txt
       For full logs, run:
         nix log /nix/store/55xbwkqcsxapyb03y0s7svi8l3qlndl9-scenefx-0.1.0-git.drv
error: Cannot build '/nix/store/ihzbsv4dpv7blmn2pkk0bclwgnpwlf9r-swayfx-unwrapped-0.5.2-git.drv'.
       Reason: 1 dependency failed.
       Output paths:
         /nix/store/2vpi20jvf8bdns25r7y3hklsl5ymkw37-swayfx-unwrapped-0.5.2-git

gbm not found? shouldn't nix builds work anywhere?

System Information:

Distributor ID:	Ubuntu
Description:	Ubuntu 24.04.3 LTS
Release:	24.04
Codename:	noble

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions