Last active
June 7, 2024 16:16
-
-
Save zarelit/c71518fe1272703788d3b5f570ef12e9 to your computer and use it in GitHub Desktop.
Workaround for https://github.com/NixOS/nixpkgs/issues/226339
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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 | |
]; | |
} |
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
Worked for me as well!
Thanks alot!
(if anyone has a problem launching the app (nothing happens) delete the ~/.pcloud and ~/.config/pcloud folders)