Re: [Nix-dev] nix-prefetch-url and sha256sum differs

2013-04-01 Thread Shea Levy
nix-prefetch-url prints out the base32 flat hash. There should be some flag to nix-hash to print base32, but it's equivalent to the hex hash. On Apr 1, 2013, at 4:42, Bjørn Forsman wrote: > On 1 April 2013 10:19, Marc Weber wrote: >>> When I run sha256sum on the downloaded file I get the corre

Re: [Nix-dev] nix-prefetch-url and sha256sum differs

2013-04-01 Thread Bjørn Forsman
On 1 April 2013 10:19, Marc Weber wrote: >> When I run sha256sum on the downloaded file I get the correct result: > nix-hash --type sha256 [--flat] file > > I don't know why the output differs from the sha256sum tool. $ nix-hash --type sha256 /nix/store/6alqcyg5qayvwv90vqay1kqxq40mqmm0-lighttpd-

Re: [Nix-dev] nix-prefetch-url and sha256sum differs

2013-04-01 Thread Marc Weber
> When I run sha256sum on the downloaded file I get the correct result: nix-hash --type sha256 [--flat] file I don't know why the output differs from the sha256sum tool. Marc Weber ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.scie

[Nix-dev] nix-prefetch-url and sha256sum differs

2013-04-01 Thread Bjørn Forsman
Hi, nix-prefetch-url returns a different sha256 hash than the sha256sum command. This is rather confusing. For example, I want to update lighttpd. I go to their website and see that the lighttpd-1.4.32.tar.gz should have sha256 sum 0765e07dac432393dea3950639d5ba646ded95a9408ad002e54b3353ab6b9645.