nixpkgs/pkgs/by-name/li/libosmocore/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

62 lines
969 B
Nix
Raw Normal View History

{ lib
, stdenv
2022-04-25 01:47:04 +00:00
, autoreconfHook
, fetchFromGitHub
, gnutls
, libmnl
2023-09-16 21:33:24 +00:00
, liburing
2022-04-25 01:47:04 +00:00
, libusb1
, lksctp-tools
, pcsclite
, pkg-config
, python3
, talloc
}:
stdenv.mkDerivation rec {
pname = "libosmocore";
2024-08-07 20:08:43 +00:00
version = "1.10.0";
src = fetchFromGitHub {
owner = "osmocom";
repo = "libosmocore";
rev = version;
2024-08-07 20:08:43 +00:00
hash = "sha256-qP5vGBgPs5y3InE3qgkVHiZgH3AW3mNyLIixgARAVRc=";
};
postPatch = ''
echo "${version}" > .tarball-version
'';
propagatedBuildInputs = [
talloc
2023-03-31 22:02:46 +00:00
libmnl
];
nativeBuildInputs = [
2022-04-25 01:47:04 +00:00
autoreconfHook
pkg-config
python3
];
buildInputs = [
2022-04-25 01:47:04 +00:00
gnutls
2023-09-16 21:33:24 +00:00
liburing
2022-04-25 01:47:04 +00:00
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
];
};
}