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 on nixos-rebuild #8973

Open
3 of 6 tasks
Tofixrs opened this issue Jan 6, 2025 · 8 comments
Open
3 of 6 tasks

Build failure on nixos-rebuild #8973

Tofixrs opened this issue Jan 6, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@Tofixrs
Copy link

Tofixrs commented Jan 6, 2025

Already reported ? *

  • I have searched the existing open and closed issues.

Regression?

Definitely a regression - something broke after update (requires bisect)

System Info and Hyprland Version

System/Version info
Hyprland 0.46.0 built from branch  at commit 2a24a61126dcebd2e1f7862e5c21c105900110ac  ().
Date: 2024-12-24
Tag: v0.46.0, commits: 
built against:
 aquamarine 0.5.1
 hyprlang 0.6.0
 hyprutils 0.2.6
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


flags set:
debug


System Information:
System name: Linux
Node name: lapfix
Release: 6.12.5
Version: #1-NixOS SMP PREEMPT_DYNAMIC Sat Dec 14 19:04:17 UTC 2024


GPU information: 
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Mobile] [10de:25a2] (rev a1) (prog-if 00 [VGA controller])
06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Cezanne [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1638] (rev c6) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX Open Kernel Module for x86_64  565.77  Release Build  (nixbld@)  Mon Dec 16 11:25:00 UTC 2024


os-release: ANSI_COLOR="0;38;2;126;186;228"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="25.05.20241219.d70bd19"
CPE_NAME="cpe:/o:nixos:nixos:25.05"
DEFAULT_HOSTNAME=nixos
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
ID_LIKE=""
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 25.05 (Warbler)"
SUPPORT_URL="https://nixos.org/community.html"
VARIANT=""
VARIANT_ID=""
VENDOR_NAME=NixOS
VENDOR_URL="https://nixos.org/"
VERSION="25.05 (Warbler)"
VERSION_CODENAME=warbler
VERSION_ID="25.05"


plugins:


Description

Tried to update my system, hyprland fails to build with erorr attached
Gotta mention that when i tried to just clone the repo and nix build . it build perfectly fine

How to reproduce

  1. nixos-rebuild on my configs

Attach not paste

  • I understand that all text files must be attached, and not pasted directly. If not respected, this issue will likely get closed as spam

Checklist of files to include below

  • Hyprland config - hyprctl systeminfo -c (always include)
  • Crash report (always include in case of crash)
  • Video (always include in case of a visual bug)
  • Logs (might contain useful info such as errors)

Additional info & File uploads

build_log.txt

@Tofixrs Tofixrs added the bug Something isn't working label Jan 6, 2025
@Tofixrs
Copy link
Author

Tofixrs commented Jan 6, 2025

Ive been trying hours to debug this myself for hours failed

@polluxcodes
Copy link
Contributor

polluxcodes commented Jan 6, 2025

I encountered a similar error when trying to build hyprland on my system recently.

I'm not familiar with how NixOS works, but is the version of hyprland-protocols it's building against fully up to date?

Edit: And by "up to date" I mean the git version.

@Tofixrs
Copy link
Author

Tofixrs commented Jan 6, 2025

I encountered a similar error when trying to build hyprland on my system recently.

I'm not familiar with how NixOS works, but is the version of hyprland-protocols it's building against fully up to date?

Edit: And by "up to date" I mean the git version.

It should be however for whatever reason meson picks up the old version
Edit: despite be trying to specify the newest version wich i do have in the flake.lock file

@Tofixrs
Copy link
Author

Tofixrs commented Jan 6, 2025

Figured it out, had to override the hyprland package to use the git version of hyprland-protocols which for whatever reason despite being in the flake.nix isnt used for the package

@fufexan
Copy link
Member

fufexan commented Jan 6, 2025

It already does. If you looked at the version and it said 0.4.0, that's because vaxry probably forgot to change the VERSION file before creating the release.

Now I can't say why it would fail to build when rebuilding your system. Might be the way you use the module.

Also I noticed you have this https://github.com/Tofixrs/dotfiles/blob/41a4b8978c0ee16f61ef6e48641514a9c21b6287/modules/core/common/system/os/display/wayland/wms/hyprland.nix#L14-L15

You can more easily just use inputs'.hyprland.packages.xdg-desktop-portal-hyprland, which does that automatically. And then you wouldn't need to disable the hyprland module.

@Tofixrs
Copy link
Author

Tofixrs commented Jan 6, 2025

It already does. If you looked at the version and it said 0.4.0, that's because vaxry probably forgot to change the VERSION file before creating the release.

If you look at the build log and then the nix store path date it did point to an older commit, so it was trying to use the old version
/nix/store/l3kbw5c2l62s63bbmfhrwrjzi3dkfhgy-hyprland-protocols-0.4.0**+date=2024-10-07_a7c1838**/

Also I noticed you have this https://github.com/Tofixrs/dotfiles/blob/41a4b8978c0ee16f61ef6e48641514a9c21b6287/modules/core/common/system/os/display/wayland/wms/hyprland.nix#L14-L15

You can more easily just use inputs'.hyprland.packages.xdg-desktop-portal-hyprland, which does that automatically. And then you wouldn't need to disable the hyprland module.

Oops, good to know!
Will try to make this work without my junk tommorow

@PlexILIghT
Copy link

I was encountering the same problem on Arch, with build failing at hyprland-surface-v1 file. Reinstalled hyprutils-protocols-git and now hyprland is building correctly.

@Tofixrs
Copy link
Author

Tofixrs commented Jan 8, 2025

I was encountering the same problem on Arch, with build failing at hyprland-surface-v1 file. Reinstalled hyprutils-protocols-git and now hyprland is building correctly.

Things work diffrently on nix so had to do it a difftent way

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants