mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
9a59b1b0fe
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.
57 lines
933 B
Nix
57 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 ];
|
|
};
|
|
}
|