libosmocore: fix version in pkg-config file

All osmocon packets look for a file ".tarball-version",
when generating pkg-config files, which is absent in the git sources.
This results in an UNKNOWN version in the pkg-config, which confuses
configure of other osmocom packages, when checking the version.
This commit is contained in:
Markus Kowalewski 2022-07-31 12:48:06 +02:00
parent 7826c54c05
commit 9a59b1b0fe
No known key found for this signature in database
GPG key ID: D865C8A91D7025EB

View file

@ -22,6 +22,10 @@ stdenv.mkDerivation rec {
hash = "sha256-Dkud3ZA9m/UVbPugbQztUJXFpkQYTWjK2mamxfto9JA=";
};
postPatch = ''
echo "${version}" > .tarball-version
'';
propagatedBuildInputs = [
talloc
];