NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.87k stars 13.94k forks source link

Mutt-wizard: Issues with sourcing #146749

Open rasmus-kirk opened 2 years ago

rasmus-kirk commented 2 years ago

Issue description

Mutt-wizard creates a configuration that sources files in the build derivation, this means that if mutt-wizard is updated, and the old package is garbage-collected, then mutt can't find the required files.

Steps to reproduce

Install muttwizard Update muttwizard Garbage-collect

Technical details

The files in question are /nix/store/hash-mutt-wizard-v/share/mutt-wizard/mailcap and /nix/store/hash-mutt-wizard-v/share/mutt-wizard/mutt-wizard.muttrc If they could be moved to:

/run/current-system/sw/share

and the mw script patched to generate configs that point there instead the issue should be able to be resolved, right?

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

- system: `"x86_64-linux"`
- host os: `Linux 5.15.0, NixOS, 21.11 (Porcupine)`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.5pre20211007_844dd90`
- channels(root): `"nixos-21.11pre327669.b67e752c29f, nixpkgs-21.11pre327669.b67e752c29f, anbox-2021-06-refresh.tar.gz-2021-06-refresh"`
- channels(user): `""`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
rasmus-kirk commented 2 years ago

@SCOTT-HAMILTON