nix-community / home-manager

Manage a user environment using Nix [maintainer=@rycee]
https://nix-community.github.io/home-manager/
MIT License
7.11k stars 1.83k forks source link

bug: collision between /share/app.asar in proton-pass and protonmail-desktop #5599

Open ghost opened 4 months ago

ghost commented 4 months ago

Are you following the right branch?

Is there an existing issue for this?

Issue description

Describe the bug

When trying to build a Home-Manager configuration with both proton-pass and protonmail-desktop declared in home.packages, a collision will occur between the /share/app.asar files.

error: builder for '/nix/store/42kj3i4ihhwqgnvl1dxv9m626wiiqsqb-home-manager-path.drv' failed with exit code 25;
       last 1 log lines:
       > error: collision between `/nix/store/ssfg507wzksai8aznjg564qybm9ggvx8-proton-pass-1.18.0/share/app.asar' and `/nix/store/1b4bbybs1wfxn3jqggby8v7llzkyrgi6-protonmail-desktop-1.0.4/share/app.asar'
       For full logs, run 'nix log /nix/store/42kj3i4ihhwqgnvl1dxv9m626wiiqsqb-home-manager-path.drv'.
error: 1 dependencies of derivation '/nix/store/j4ac9wsy5sxpda6c4q10frf05h9vk6hf-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/nf80gw22dmjqd44rsqpjzq3249pk93vg-unit-home-manager-omer.service.drv' failed to build
error: 1 dependencies of derivation '/nix/store/443a3094clvmam6sajk868mm947piw3d-system-units.drv' failed to build
error: 1 dependencies of derivation '/nix/store/2lswll9b8ndbaxzpy16k2ld1sw663q11-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/506wd9dvb78wx5kx4lp6jlwp9yh76z7k-nixos-system-omer-laptop-24.11.20240701.00d80d1.drv' failed to build

Steps to reproduce

  home.packages = with pkgs; [
    protonmail-desktop
    proton-pass
  ];

Additional context

For some reason this issue is not present outside of Home-Manager. For example, specifying environment.systemPackages = with pkgs; [ proton-pass protonmail-desktop ]; builds successfully.

I am using Flakes and have made sure that home-manager inputs follows my nixpkgs.

nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

home-manager.url = "github:nix-community/home-manager";
home-manager.inputs.nixpkgs.follows = "nixpkgs";

Maintainer CC

No response

System information

- system: `"x86_64-linux"`
- host os: `Linux 6.6.36, NixOS, 24.11 (Vicuna), 24.11.20240627.b2852eb`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.4`
- nixpkgs: `/nix/store/4p0avw1s3vf27hspgqsrqs37gxk4i83i-source`
mainrs commented 3 months ago

Anything one can do to help here out? I'm not entirely sure why this happens. But I'd be happy to implement a fix with some guidance.

danielpza commented 3 months ago

This works for me

  home.packages = with pkgs; [
    proton-pass
    (lib.hiPrio protonmail-desktop)
  ];