Skip to content

Instantly share code, notes, and snippets.

@zarelit
Last active March 30, 2024 17:42
Show Gist options
  • 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
];
}
@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