Skip to content

Instantly share code, notes, and snippets.

@zarelit
Last active March 30, 2024 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zarelit/c71518fe1272703788d3b5f570ef12e9 to your computer and use it in GitHub Desktop.
Save zarelit/c71518fe1272703788d3b5f570ef12e9 to your computer and use it in GitHub Desktop.
{ pkgs, ... }:
let
patchelfFixes = pkgs.patchelfUnstable.overrideAttrs (_finalAttrs: _previousAttrs: {
src = pkgs.fetchFromGitHub {
owner = "Patryk27";
repo = "patchelf";
rev = "527926dd9d7f1468aa12f56afe6dcc976941fedb";
sha256 = "sha256-3I089F2kgGMidR4hntxz5CKzZh5xoiUwUsUwLFUEXqE=";
};
});
pcloudFixes = pkgs.pcloud.overrideAttrs (_finalAttrs:previousAttrs: {
nativeBuildInputs = previousAttrs.nativeBuildInputs ++ [ patchelfFixes ];
});
in
{
nixpkgs.config.allowUnfree = true;
environment.systemPackages = [
pcloudFixes
];
}
@loicloiseau
Copy link

This worked perfectly for me. Thanks !

@nozense
Copy link

nozense commented Mar 19, 2024

Worked for me as well!
Thanks alot!
(if anyone has a problem launching the app (nothing happens) delete the ~/.pcloud and ~/.config/pcloud folders)

@introspectionism
Copy link

Thank you. Worked well for me as well.

If using home-manager, swap out the environment.systemPackages part with:

    home.packages = with pkgs; [
        pcloudFixes
    ];

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