ng0177
March 9, 2026, 7:15am
1
Telegram - Official NixOS Wiki has ceased to run following yesterday’s channel update.
nix-shell -p telegram-desktop
…
st gsl::not_null<UserData*>’ [-Wrange-loop-construct]> 2501 | for (const auto user : usersWithBirthdays) {> | ^~~~> /build/source/Telegram/SourceFiles/boxes/star_gift_box.cpp:2501:41: note: use reference type to prevent copying> 2501 | for (const auto user : usersWithBirthdays) {> | ^~~~> | &> ninja: build stopped: subcommand failed.For full logs, run:nix log /nix/store/zxsv6dxxhpccw2g9yd5d7nd6ixbd2w4p-telegram-desktop-unwrapped-6.4.1.drverror: Cannot build ‘/nix/store/avdhlqhq6fkgm9dlix1x68cpzcga8zrm-telegram-desktop-6.4.1.drv’.Reason: 1 dependency failed.Output paths:/nix/store/jjqhyrb1nvn2xaj84f2nis63vpiqmgfk-telegram-desktop-6.4.1
This is a known issue at the moment. There is a proposed overlay in the issue to rectify the issue.
opened 12:47PM - 07 Mar 26 UTC
0.kind: build failure
### Nixpkgs version
Please select a version.
### Describe the bug
When trying… to build telegram-desktop (version 6.4.1) on NixOS , the compilation fails due to a missing Wayland dependency.
### Steps to reproduce
Add telegram-desktop to environment.systemPackages on nixos-unstable.
Run system update (nixos-rebuild switch or nh os switch).
Observe the build failing with the following error:
fatal error: wayland-client-protocol.h: No such file or directory
### Expected behaviour
The package should build successfully or download from the cache.
### Screenshots
<img width="3835" height="411" alt="Image" src="https://github.com/user-attachments/assets/57878c7b-f893-47eb-8eff-fd3f04634fa8" />
### Relevant log output
```console
```
### Additional context
_No response_
### System metadata
- system: `"x86_64-linux"`
- host os: `Linux 6.19.5, NixOS, 25.11 (Xantusia), 25.11.20260304.fabb8c9`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.31.2`
- nixpkgs: `/nix/store/6506wv90034i61g33h3i7jn1bv2fqm8a-source`
### Notify maintainers
---
**Note for maintainers:** Please tag this issue in your pull request description. (i.e. `Resolves #ISSUE`.)
### I assert that this issue is relevant for Nixpkgs
- [x] I assert that this is a bug and not a support request.
- [x] I assert that this is not a [duplicate of an existing issue](https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+label%3A%220.kind%3A+bug%22+-label%3A%226.topic%3A+darwin%22+-label%3A%226.topic%3A+nixos%22).
- [x] I assert that I have read the [NixOS Code of Conduct](https://github.com/NixOS/.github/blob/master/CODE_OF_CONDUCT.md) and agree to abide by it.
### Is this issue important to you?
Add a :+1: [reaction] to [issues you find important].
[reaction]: https://github.blog/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/
[issues you find important]: https://github.com/NixOS/nixpkgs/issues?q=is%3Aissue+is%3Aopen+sort%3Areactions-%2B1-desc
3 Likes