ouch
April 14, 2026, 8:53pm
1
Hello
I am new to nixos and installed it on an ARM machine. I added pkgs.protonvpn-gui to my apps and when I rebuild I get this error:
I looked here and I don’t think it’s an issue on my system, but I am really new so idk lol Does anybody know how I can get this working? Really like NixOS so far!
1 Like
This is not your fault. The application is broken on aarch64 because the build is looking for x86-64 architecture inputs.
On nixos-unstable, the package has been renamed to proton-vpn, and on hydra the build for aarch64-linuxis successful.
3 Likes
The bug was reported in this issue:
opened 07:34AM - 26 Nov 25 UTC
closed 01:30PM - 27 Nov 25 UTC
0.kind: bug
### Nixpkgs version
- Unstable (26.05)
### Describe the bug
Because proton-vp… n-local-agent hard-codes the architecture [since the wheel is only used for dev purposes](https://github.com/ProtonVPN/local-agent-rs/blob/0f7a7fa240f3d539896bbf7cdc3539f4daa3e1de/python-proton-vpn-local-agent/scripts/build_wheel.py#L18) and nixpkgs builds this package from source, the build fails on non-x86_64 systems.
### Steps to reproduce
Build the package on aarch64-linux
### Expected behaviour
It should build
### Screenshots
_No response_
### Relevant log output
```console
Sourcing python-remove-tests-dir-hook
Sourcing python-remove-tests-dir-hook
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing pypa-install-hook
Using pypaInstallPhase
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing pypa-install-hook
Using pypaInstallPhase
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/qfnpvvhabphn93fhy165s1r6ls7n8ljp-source
source root is source/python-proton-vpn-local-agent
Executing cargoSetupPostUnpackHook
Finished cargoSetupPostUnpackHook
setting SOURCE_DATE_EPOCH to timestamp 315619200 of file "source/python-proton-vpn-local-agent/versions.yml"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Executing cargoSetupPostPatchHook
Validating consistency between /build/source/python-proton-vpn-local-agent/Cargo.lock and /build/proton-vpn-local-agent-1.6.0-vendor/Cargo.lock
Finished cargoSetupPostPatchHook
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing cargoBuildHook
cargoBuildHook flags: -j 8 --target aarch64-unknown-linux-gnu --offline --profile release
Compiling proc-macro2 v1.0.94
Compiling unicode-ident v1.0.12
Compiling libc v0.2.155
Compiling autocfg v1.3.0
Compiling memchr v2.7.4
Compiling target-lexicon v0.13.2
Compiling once_cell v1.19.0
Compiling fs_extra v1.3.0
Compiling dunce v1.0.5
Compiling cfg-if v1.0.0
Compiling paste v1.0.15
Compiling time-core v0.1.6
Compiling pin-project-lite v0.2.14
Compiling parking_lot_core v0.9.10
Compiling minimal-lexical v0.2.1
Compiling num-traits v0.2.19
Compiling lock_api v0.4.12
Compiling num-conv v0.1.0
Compiling thiserror v1.0.63
Compiling aws-lc-rs v1.8.1
Compiling powerfmt v0.2.0
Compiling time-macros v0.2.24
Compiling jobserver v0.1.32
Compiling pyo3-build-config v0.24.0
Compiling deranged v0.5.3
Compiling slab v0.4.9
Compiling quote v1.0.36
Compiling cc v1.1.8
Compiling aho-corasick v1.1.3
Compiling syn v2.0.100
Compiling nom v7.1.3
...skipping...
Compiling futures-task v0.3.31
Compiling futures-io v0.3.31
Compiling pin-utils v0.1.0
Compiling colorchoice v1.0.2
Compiling anstyle v1.0.8
Compiling oid-registry v0.7.1
Compiling futures-util v0.3.31
Compiling anstream v0.6.15
Compiling tokio v1.39.2
Compiling num-bigint v0.4.6
Compiling env_filter v0.1.2
Compiling pyo3 v0.24.0
Compiling getrandom v0.2.15
Compiling humantime v2.1.0
Compiling subtle v2.6.1
Compiling spin v0.9.8
Compiling serde_json v1.0.122
Compiling env_logger v0.11.5
Compiling der-parser v9.0.0
Compiling pyo3-macros v0.24.0
Compiling futures-executor v0.3.31
Compiling test-log-macros v0.2.16
Compiling itoa v1.0.11
Compiling unindent v0.2.3
Compiling base64 v0.22.1
Compiling lazy_static v1.5.0
Compiling ryu v1.0.18
Compiling data-encoding v2.9.0
Compiling indoc v2.0.5
Compiling rustls-pemfile v2.1.3
Compiling x509-parser v0.16.0
Compiling test-log v0.2.16
Compiling futures v0.3.31
Compiling bincode v1.3.3
Compiling pyo3-async-runtimes-macros v0.24.0
Compiling async-trait v0.1.81
Compiling webpki-roots v0.26.6
Compiling static_assertions v1.1.0
Compiling pyo3-async-runtimes v0.24.0
Compiling webpki v0.22.4
Compiling rustls-webpki v0.102.6
Compiling tokio-rustls v0.26.0
Compiling local-agent-rs v0.10.1 (/build/source/local_agent_rs)
Compiling python-proton-vpn-local-agent v1.6.0 (/build/source/python-proton-vpn-local-agent)
Finished `release` profile [optimized] target(s) in 33.52s
Traceback (most recent call last):
File "/build/source/python-proton-vpn-local-agent/scripts/build_wheel.py", line 56, in <module>
with open(LIB_PATH, 'rb') as f:
~~~~^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/build/source/python-proton-vpn-local-agent/target/x86_64-unknown-linux-gnu/release/libpython_proton_vpn_local_agent.so'
```
### Additional context
This might be fixed by patching the build script
### System metadata
(it says 25.11 because I'm trying to update to 26.05 right now, but can't because of this error)
```
- system: `"aarch64-linux"`
- host os: `Linux 6.17.5, NixOS, 25.11 (Xantusia), 25.11.20251107.26eb904`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.31.2`
- nixpkgs: `/nix/store/6klybn9wl3vxrwah5z04vx0bzs0rj90s-source`
```
### Notify maintainers
@SebTM @Steinhagen
---
**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%3Aopen+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
and fixed in the PR linked in the above issue. But the fix was not backported to 25.11.
I recommend opening an issue to see if the maintainers will backport the fix for you.
1 Like
ouch
April 15, 2026, 7:25pm
4
Thank you so much Super nice reply too, have a good day
ouch
April 15, 2026, 8:24pm
5
While it did install, logging in doesn’t work. It says “an unexpected error occurred” it works in the browser and everywhere else