[Nix-dev] Updating dovecot

Lluís Batlle i Rossell viriketo at gmail.com
Tue Oct 25 22:58:10 CEST 2011


On Tue, Oct 25, 2011 at 10:42:01PM +0200, Marc Weber wrote:
> Excerpts from Lluís Batlle i Rossell's message of Tue Oct 25 22:34:55 +0200 2011:
> > I added dovecot 2.0 to nixpkgs, but did not overwrite the other. I'm not sure
> > what to do with the nixos file; maybe create a new dovecot2 and leave dovecot?
> 
> nix does not support downgrading to older store formats trivially either.
> 
> creating a second module is always safest. Asking here is nice, too.
> 
> If there is no need to downgrade again there is no need to keep both
> versions.
> 
> What could be done ? backup data if version changes.
> How to detect version change? create a state file
> echo $dovecot_version > /var/run/dovecot-version or such.
> If that changes make backup and continue.. Then people can downgrade
> again. But if the new version works this is overkill - thoughts?

Maybe changing the main nixos module to dovecot2 will make more people care on
getting dovecot2 working? :)
We can keep a dovecot2 module apart for some time, with the former dovecot
module emitting some warning about the forecoming update, too. But how much
time, who knows.


More information about the nix-dev mailing list