Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure: Nix Flake #3957

Closed
techyporcupine opened this issue Feb 24, 2025 · 3 comments
Closed

Build failure: Nix Flake #3957

techyporcupine opened this issue Feb 24, 2025 · 3 comments

Comments

@techyporcupine
Copy link

While updating my NixOS flakes, waybar failed to build with the following.

Installing /build/source/build/meson-private/cava.pc to /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/lib/pkgconfig
Installing /build/source/resources/config.jsonc to /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/etc/xdg/waybar
Installing /build/source/resources/style.css to /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/etc/xdg/waybar
Running phase: gappsWrapperArgsHook
@nix { "action": "setPhase", "phase": "gappsWrapperArgsHook" }
Running phase: dropIconThemeCache
@nix { "action": "setPhase", "phase": "dropIconThemeCache" }
Running phase: dropIconThemeCache
@nix { "action": "setPhase", "phase": "dropIconThemeCache" }
Running phase: dropIconThemeCache
@nix { "action": "setPhase", "phase": "dropIconThemeCache" }
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
Wrapping program '/nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/bin/waybar'
shrinking RPATHs of ELF executables and libraries in /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d
shrinking /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/lib/libcava.so
shrinking /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/bin/.waybar-wrapped
shrinking /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/bin/waybar
checking for references to /build/ in /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d...
gzipping man pages under /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/share/man/
moving /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/lib/systemd/user/* to /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/share/systemd/user
patching script interpreter paths in /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d
stripping (with command strip and flags -S -p) in  /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/lib /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/bin
rewriting symlink /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/lib/systemd/user to be relative to /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d
Running phase: installCheckPhase
@nix { "action": "setPhase", "phase": "installCheckPhase" }
Executing versionCheckPhase
Did not find version 0.12.0+date=2025-02-21_8490a1d in the output of the command /nix/store/n4p3xf91z7a38yh31jgydcz00hpcnrad-waybar-0.12.0+date=2025-02-21_8490a1d/bin/waybar --version
env: '--version': No such file or directory

Let me know if more is needed.

@thundertheidiot
Copy link

this failure probably comes from a dependency of waybar, mine doesn't build after a nix flake update even though i reverted the waybar chunks

@techyporcupine
Copy link
Author

techyporcupine commented Feb 25, 2025

Hmm have you done any other troubleshooting? I think it may be a problem with the last release of Waybar, as it thinks '--version' was a reference to a directory.

@mslxl
Copy link
Contributor

mslxl commented Mar 10, 2025

The problem caused by this commit NixOS/nixpkgs@ebf799b, which add versionCheckHook

So now we have two options to solve the problem. Removing versionCheckHook, or remove the date suffix of version. I'm not sure what result it caused, I will look up some document, and later I will fix it. khaneliman already work on it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants