[Nix-dev] Re: [Nix-commits] SVN commit: nix - 14893 - viric - in nixpkgs/trunk/pkgs: applications/graphics applications/graphics/panotools top-level

Eelco Dolstra e.dolstra at tudelft.nl
Mon Apr 6 10:12:45 CEST 2009


Hi,

Lluís Batlle wrote:

> 2009/4/6 Ludovic Courtès <ludo at gnu.org>:
>> Saluton,
>>
>> Llus Batlle <viriketo at gmail.com> writes:
>>
>>> +  src = fetchsvn {
>>> +    url = https://panotools.svn.sourceforge.net/svnroot/panotools/trunk/libpano;
>>> +    rev = 955;
>>> +  };
>> Two remarks:
>>
>>  1. It'd be better to provide `sha256', for improved reproducibility.
> How can I know the sha256 of a repository checkout?

There is a script nix-prefetch-svn in Nixpkgs (in pkgs/build-support/fetchsvn):

$ NIX_HASH_ALGO=sha256 nix-prefetch-svn \
    https://panotools.svn.sourceforge.net/svnroot/panotools/trunk/libpano
...
e896c21caa098d33f33f33f134a8c9a725686c2470fe3cd08b76cd7934a56034

This is a hash of the NAR dump (nix-store --dump) of an "svn export", btw.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/



More information about the nix-dev mailing list