Re: [Nix-dev] Bug(?) in derivation/hashing

2016-08-27 Thread Peter Hoeg
One trick further to what Damien wrote: What I do: when I update a derivation, I update the name and I randomly change the sha256. nix-build or nix-env then downloads the new release tarball, compares the sha256s, fails, and tells me the actual sha256. nix-prefetch-url -A package_name.src

Re: [Nix-dev] Bug(?) in derivation/hashing

2016-08-26 Thread Domen Kožar
Relevant: https://github.com/NixOS/nix/issues/969 On Fri, Aug 26, 2016 at 1:18 PM, Damien Cassou wrote: > > > On August 26, 2016 12:50:48 PM GMT+02:00, Sergey Mironov > wrote: > > I decided to bump a version. Since there is 20160805 version available, > >I

Re: [Nix-dev] Bug(?) in derivation/hashing

2016-08-26 Thread Damien Cassou
On August 26, 2016 12:50:48 PM GMT+02:00, Sergey Mironov wrote: > I decided to bump a version. Since there is 20160805 version available, >I wanted to 1) replace "20151220" with "20160805", 2) run `nix-env -i >urweb` to see a 'Hash mismatch' error, and finaly 3) copy correct

[Nix-dev] Bug(?) in derivation/hashing

2016-08-26 Thread Sergey Mironov
Hi. I recently faced a strange behavior of nix, wiich resulted in installation of package with incorrect name. Here I'd like to describe the steps I performed. There is an compilers/urweb/default.nix expression containing the expression for building Ur/Web compiler. Originally, it contained the