Pcloud gives segmentation fault

Hi, I just (partly) swtiched from Arch Linux to NixOS and still learning the Nix ecosystem. Very nice! One of the things I can’t get to work however is installing the package “pcloud” to sync my files with the Pcloud service.
When running nix-shell -p pcloud I get Segmentation fault (core dumped). The same goes when putting pcloud in /etc/nixos/configuration.nix. Is there maybe a way to get the pcloud package correctly running without the segmatation fault?
nixos-version: 23.05.2533.9652a97d9738 (Stoat)
nix --version: nix (Nix) 2.13.3

Thanx.

Looks like the package is somewhat broken, there may be workarounds in this issue: pcloud crashes with SIGSEGV on recent nixpkgs unstable · Issue #226339 · NixOS/nixpkgs · GitHub

I think it boils down to “grab it from an old nixpkgs where it wasn’t broken yet”, looks like there’s some major issue lurking in patchelf.

Thank you! I will dive in to it.

“nix-env -f channel:nixos-22.11 -iA pcloud” did the trick. It is working now.
Thanks.

1 Like

The above issue now has a patch, thanks to @Patryk27 , if you want to try it out now before it makes its way into the release I’ve made a nixos module here (open the link, discourse shows only part of it):

3 Likes