python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / libqmi / default.nix
blobb261967f5cf26e05f42abd41d7ec8a34ff90b5d9
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
16 stdenv.mkDerivation rec {
17   pname = "libqmi";
18   version = "1.30.8";
20   outputs = [ "out" "dev" "devdoc" ];
22   src = fetchurl {
23     url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
24     sha256 = "sha256-hiSCzp460L1l0mQzTuMRzblLnfKGO1txNjCbQbisGZA=";
25   };
27   nativeBuildInputs = [
28     pkg-config
29     gobject-introspection
30     python3
31     gtk-doc
32     docbook-xsl-nons
33     docbook_xml_dtd_43
34   ];
36   buildInputs = [
37     libgudev
38     libmbim
39   ];
41   propagatedBuildInputs = [
42     glib
43     libqrtr-glib
44   ];
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   ];
52   enableParallelBuilding = true;
54   doCheck = true;
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   };