The previous update to 0.9.9 didn't actually update the version because
it forgot to update the hash,
so the old source archive continued to be used:
https://github.com/NixOS/nixpkgs/pull/312656#discussion_r1650100776
Because now the new code is actually pulled in, it needs new
dependencies and fixes.
* `PRJ_GIT_DATE` is needed.
Remove the manual replacement of versions, and use the
approach that upstream added for nixpkgs:
https://github.com/NixOS/nixpkgs/pull/181723#discussion_r1650109217
This avoids cases like this, where new versioning fields are added;
upstream takes care of it for us now.
* Use `finalAttrs` for correct version overriding.
* Fix compile error with `gtest`, see added comments.
* Enable FLAC support
(and the tests don't pass without it on this version, see
21901d7c2d)
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.