lol
1{
2 lib,
3 stdenv,
4 autoreconfHook,
5 fetchFromGitHub,
6 gnutls,
7 libmnl,
8 liburing,
9 libusb1,
10 lksctp-tools,
11 pcsclite,
12 pkg-config,
13 python3,
14 talloc,
15}:
16
17stdenv.mkDerivation rec {
18 pname = "libosmocore";
19 version = "1.11.1";
20
21 src = fetchFromGitHub {
22 owner = "osmocom";
23 repo = "libosmocore";
24 rev = version;
25 hash = "sha256-JR1L2ffVqvhylrYWPnWKQ/iihx6in7B3iP6Mo0MHbpw=";
26 };
27
28 postPatch = ''
29 echo "${version}" > .tarball-version
30 '';
31
32 propagatedBuildInputs = [
33 talloc
34 libmnl
35 ];
36
37 nativeBuildInputs = [
38 autoreconfHook
39 pkg-config
40 python3
41 ];
42
43 buildInputs = [
44 gnutls
45 liburing
46 libusb1
47 lksctp-tools
48 pcsclite
49 ];
50
51 enableParallelBuilding = true;
52
53 meta = with lib; {
54 description = "Set of Osmocom core libraries";
55 homepage = "https://github.com/osmocom/libosmocore";
56 license = licenses.gpl2Plus;
57 platforms = platforms.linux;
58 maintainers = with maintainers; [
59 mog
60 ];
61 };
62}