]> Git — Sourcephile - julm/julm-nix.git/blob - nixpkgs/pkgs/libqmi.nix
hardware: add T480
[julm/julm-nix.git] / nixpkgs / pkgs / libqmi.nix
1 { lib
2 , stdenv
3 , fetchurl
4 , pkg-config
5 , gobject-introspection
6 , gtk-doc
7 , docbook-xsl-nons
8 , docbook_xml_dtd_43
9 , glib
10 , python3
11 , libgudev
12 , libmbim
13 , libqrtr-glib
14 }:
15
16 stdenv.mkDerivation rec {
17 pname = "libqmi";
18 version = "1.30.8";
19
20 outputs = [ "out" "dev" "devdoc" ];
21
22 src = fetchurl {
23 url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
24 sha256 = "sha256-hiSCzp460L1l0mQzTuMRzblLnfKGO1txNjCbQbisGZA=";
25 };
26
27 nativeBuildInputs = [
28 pkg-config
29 gobject-introspection
30 python3
31 gtk-doc
32 docbook-xsl-nons
33 docbook_xml_dtd_43
34 ];
35
36 buildInputs = [
37 libgudev
38 libmbim
39 ];
40
41 propagatedBuildInputs = [
42 glib
43 libqrtr-glib
44 ];
45
46 configureFlags = [
47 "--with-udev-base-dir=${placeholder "out"}/lib/udev"
48 "--enable-gtk-doc=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "yes" else "no"}"
49 "--enable-introspection=${if (stdenv.buildPlatform == stdenv.hostPlatform) then "yes" else "no"}"
50 ];
51
52 enableParallelBuilding = true;
53
54 doCheck = true;
55
56 meta = with lib; {
57 homepage = "https://www.freedesktop.org/wiki/Software/libqmi/";
58 description = "Modem protocol helper library";
59 maintainers = teams.freedesktop.members;
60 platforms = platforms.linux;
61 license = with licenses; [
62 # Library
63 lgpl2Plus
64 # Tools
65 gpl2Plus
66 ];
67 changelog = "https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/blob/${version}/NEWS";
68 };
69 }