From 9a59b1b0fed320fef681f0f3a19590b39c8d840c Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Sun, 31 Jul 2022 12:48:06 +0200 Subject: [PATCH] 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. --- pkgs/applications/misc/libosmocore/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/misc/libosmocore/default.nix b/pkgs/applications/misc/libosmocore/default.nix index 0cab21519cf..a3de388a52a 100644 --- a/pkgs/applications/misc/libosmocore/default.nix +++ b/pkgs/applications/misc/libosmocore/default.nix @@ -22,6 +22,10 @@ stdenv.mkDerivation rec { hash = "sha256-Dkud3ZA9m/UVbPugbQztUJXFpkQYTWjK2mamxfto9JA="; }; + postPatch = '' + echo "${version}" > .tarball-version + ''; + propagatedBuildInputs = [ talloc ];