eljamm
June 18, 2024, 9:41pm
2
This seems to be an ongoing issue:
opened 06:22AM - 24 Mar 24 UTC
bug
triage
### Are you following the right branch?
- [X] My Nixpkgs and Home Manager versi… ons are in sync
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Issue description
When more than one flutter based packages are added through home.packages, build fails with collision between files from the packages. This does not happen when the same packages are added through `users.users.<name>.packages` or `environment.systemPackages`
example with `home.packages = [ pkgs.localsend pkgs.fluffychat ]`
```
error: builder for '/nix/store/z7qx8d0g4shim69kjcpcpnc17widyw9m-home-manager-path.drv' failed with exit code 25;
last 1 log lines:
> error: collision between `/nix/store/qjxvadw1d63356sk1381s2klj06xkjq3-localsend-1.14.0/app/data/flutter_assets/AssetManifest.bin' and `/nix/store/1vwwz4kkjcbn9d6g4
d7ncbmlyyrbmlpq-fluffychat-linux-1.18.0/app/data/flutter_assets/AssetManifest.bin'
For full logs, run 'nix log /nix/store/z7qx8d0g4shim69kjcpcpnc17widyw9m-home-manager-path.drv'.
error: 1 dependencies of derivation '/nix/store/82pjm6d2sb48866imkf6b5qdqg2f72i4-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/399wbzr70n0hq918j6sg86bzqgmxscdx-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0ajaliqvbaynp3kw00ki95gk5bmwn712-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/1xq6z4wq7jm6lhxml0289wyzcbsgf4xp-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s7xss2ldv3g7cr6mcm8gpa69wm1gv2nz-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0k074zzww8p4mgkm200j3m0s7nbhaiz1-nixos-system-Skipper-24.05.20240321.20f77aa.drv' failed to build
```
example with `home.packages = [ pkgs.fluffychat pkgs.yubioath-flutter ]`
```
error: builder for '/nix/store/k26yxyv3yxyb0yc1qcvijanp8gk49hs2-home-manager-path.drv' failed with exit code 25;
last 1 log lines:
> error: collision between `/nix/store/4kbvygf17yx0jasvviypms1py0as51f6-yubioath-flutter-6.4.0/app/data/flutter_assets/AssetManifest.bin' and `/nix/store/1vwwz4kkjcbn9d6g4d7ncbmlyyrbmlpq-fluffychat-linux-1.18.0/app/data/flutter_assets/AssetManifest.bin'
For full logs, run 'nix log /nix/store/k26yxyv3yxyb0yc1qcvijanp8gk49hs2-home-manager-path.drv'.
error: 1 dependencies of derivation '/nix/store/w90jm62v7b23c26cms6vyn2fw7vhra40-home-manager-generation.drv' failed to build
error: 1 dependencies of derivation '/nix/store/m4wsqfnydj0091acxp1h8kg6lk7a5j33-user-environment.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6c1f7wjnc1bamk5803l7dia09pvfabn2-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/maxdyj3ig85ncbq3s27nq6akz8fci3ds-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ywfkcniaamn37p3v34qv457ipw150g74-etc.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vrn1pqqf1ppkbm7rygrcf0xw96206h80-nixos-system-Skipper-24.05.20240321.20f77aa.drv' failed to build
```
### Maintainer CC
_No response_
### System information
```markdown
- system: `"x86_64-linux"`
- host os: `Linux 6.8.1, NixOS, 24.05 (Uakari), 24.05.20240321.20f77aa`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.2`
- nixpkgs: `/etc/nix/inputs/nixpkgs`
```
Using users.users.<name>.packages
should work for now, as it will give the same result as using home.packages
- i.e. only install packages for your current user.
2 Likes