You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last 2 lines of output of e.g. nix-build --hash -A fio.src with a random sha256 value are:
build produced path ‘/nix/store/1ddvn536mgycflb48m23r8w4d01bzvkq-fio-fio-2.12-src’ with sha256 hash ‘1m0fx0x1v2375vyxhd2i12b9w1qy4yh75f6qhwlcr78himcsmpp9’
/nix/store/bcmckd9vn7gyrdyic5lyic01b5j3a5l2-fio-fio-2.12-src
That is, the useful value, 1m0fx0x1v2375vyxhd2i12b9w1qy4yh75f6qhwlcr78himcsmpp9 is only present in the stderr/build log. The line printed to stdout (the last one) is actually useless as it's presumably the "temporary" output path used before the hash is known.
Hmm, now it was removed and the error message changed to fixed-output derivation produced path '%s' with %s hash '%s' instead of the expected hash '%s'
Would there also be value in having another flag that would drop {--out-link}.hash file with the hash? So that other tools could pick it up without needing to parse output at all?
Activity
copumpkin commentedon Nov 15, 2017
Also causing me much pain
jtojnar commentedon Feb 16, 2018
Hmm, now it was removed and the error message changed to
fixed-output derivation produced path '%s' with %s hash '%s' instead of the expected hash '%s'colemickens commentedon Apr 28, 2018
Would there also be value in having another flag that would drop
{--out-link}.hashfile with the hash? So that other tools could pick it up without needing to parse output at all?stale commentedon Feb 15, 2021
I marked this as stale due to inactivity. → More info
tomberek commentedon Sep 1, 2026
Closing as stale. Re-open if needed.