[Nix-dev] Re: [Nix-commits] SVN commit: nix - 14015 - raskin - in nixpkgs/trunk/pkgs: tools/graphics tools/graphics/cuneiform top-level

Ludovic Courtès ludo at gnu.org
Tue Feb 10 16:23:36 CET 2009


Hello,

Michael Raskin <7c6f434c at mail.ru> writes:

> Eelco Dolstra wrote:

>>> +in
>>> +rec {
>>> +  src = fetchurl {
>>> +    url = "http://launchpad.net/cuneiform-linux/${version}/${version}/+download/cuneiform-${version}.tar.bz2";
>>> +    sha256 = "0jgiccimwv1aqp9gzl9937gdlh9zl5qpaygf0n1xcbfd5aqz14ig";
>>> +  };
>>
>> This fetchurl call is potentially inconsistent: if I supply a version other than
>> 0.6, the sha256 hash won't be correct.
>
> That is not the point. The point is that you do not need to edit version
> everywhere in expression - and if you specify it wrong, fetchurl fails.

Agreed, it makes for smaller diffs.  :-)

Ludo'.




More information about the nix-dev mailing list