nixpkgs/pkgs/applications/misc/libosmocore/default.nix
Markus Kowalewski 9a59b1b0fe
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.
2022-07-31 12:48:06 +02:00

56 lines
933 B
Nix

{ lib, stdenv
, autoreconfHook
, fetchFromGitHub
, gnutls
, libmnl
, libusb1
, lksctp-tools
, pcsclite
, pkg-config
, python3
, talloc
}:
stdenv.mkDerivation rec {
pname = "libosmocore";
version = "1.7.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "libosmocore";
rev = version;
hash = "sha256-Dkud3ZA9m/UVbPugbQztUJXFpkQYTWjK2mamxfto9JA=";
};
postPatch = ''
echo "${version}" > .tarball-version
'';
propagatedBuildInputs = [
talloc
];
nativeBuildInputs = [
autoreconfHook
pkg-config
python3
];
buildInputs = [
gnutls
libmnl
libusb1
lksctp-tools
pcsclite
];
enableParallelBuilding = true;
meta = with lib; {
description = "Set of Osmocom core libraries";
homepage = "https://github.com/osmocom/libosmocore";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ mog ];
};
}