nixpkgs/pkgs/development/libraries/libqmi/default.nix
2020-05-08 07:02:25 +02:00

40 lines
822 B
Nix

{ stdenv, fetchurl, pkgconfig, glib, python3, libgudev, libmbim }:
stdenv.mkDerivation rec {
pname = "libqmi";
version = "1.24.10";
src = fetchurl {
url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
sha256 = "1rzxapr6hb18ccvqh5fizx7zk63l47bs0p3gizycz2ysnm1i44n2";
};
outputs = [ "out" "dev" "devdoc" ];
configureFlags = [
"--with-udev-base-dir=${placeholder "out"}/lib/udev"
];
nativeBuildInputs = [
pkgconfig
python3
];
buildInputs = [
glib
libgudev
libmbim
];
enableParallelBuilding = true;
doCheck = true;
meta = with stdenv.lib; {
homepage = "https://www.freedesktop.org/wiki/Software/libqmi/";
description = "Modem protocol helper library";
platforms = platforms.linux;
license = licenses.gpl2;
};
}