[Nix-dev] Re: Auto-updating sources: handling the general case

Michael Raskin 7c6f434c at mail.ru
Fri Aug 20 00:43:32 CEST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08/20/2010 01:18 AM, Yury G. Kudryashov wrote:
>> What properties I want or understand others wanting:
>> 1) One file per expression.
>> 2) Not too much implied formatting restrictions that cannot be expressed
>> in Nix terms. I.e. comments, attribute ordering, formatting etc. are not
>> supposed to matter in Nix expressions and making them matter sometimes
>> may be not nice.
>> 3) An approach that can cover fetchsvn etc. if needed.
> 4) Show diff for relevant files (configure.ac, CMakeLists.txt, Makefile.am 
> etc.)
> Otherwise people will just upgrade blindly and miss some important changes.

Unfortunately, for most cases important changes (= those causing much
effort spent on fixing things) are not where you look for them. Diffs in
configure.ac are much longer than the meaning they represent if you use
Automake. And not thinking of these changes is usually less of a problem
than a subtle change of behaviour that is only mentioned in full Changelog.

> 5) (optional) If package applies some patches, try to apply them.
>
> 6) An easy way to maintain several versions and *add* new one instead of 
> overriding the old one.
> 
> Does this contradict 1)?

No, it doesn't - different versions can be different expressions. Or
maybe a list of versions inside one expression.

> 7) Notify the maintainers when newer version is available without changing 
> nix expression (cron job on nixos.org?).

This is technically trivial from my original requirements - find
update-supporting packages, try updating, svn diff. Or something like that.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMbbOTAAoJEE6tnN0aWvw3xUYH/0OgDfF+TAcdKEUG3fkc44v/
IJy47jTqvJgMRyw/JRUIpB9BwIGTyW+MPiNri2OTyopJw7OJsMo0qAdvBqzFVjXX
aVn7ndEbbBQ98FfiPq8Rldf510IjLnJCiuFDHDCgYRiBjsvODAxtpI/f5MhcqwnM
QMgGChlP5ezIpqD4H2suVnhMyrghfNE9xZKfnJJbMuVSr5kJZEiBSAJnViOmu9mi
hIEXzZTIWVSmdUBh5J0KWNBdEAjRI3UIsFPyEoRjgXiAemuX3vMzr9uygVt3jMI8
AV0zzRebKf5jaqLlW9sph890n1G598ZJoW9gDjGd90ABMbAyxk5+HUPRlKNf++s=
=SXjY
-----END PGP SIGNATURE-----



More information about the nix-dev mailing list