Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 37 lines 867 B view raw
1{ stdenv, fetchurl, pkgconfig, glib, python3, systemd, libgudev }: 2 3stdenv.mkDerivation rec { 4 pname = "libmbim"; 5 version = "1.22.0"; 6 7 src = fetchurl { 8 url = "https://www.freedesktop.org/software/libmbim/${pname}-${version}.tar.xz"; 9 sha256 = "0f0zmbvnhdsqbf3hw5bimq67n57mhd8yad1ia823cb6i3kmph1sw"; 10 }; 11 12 outputs = [ "out" "dev" "man" ]; 13 14 configureFlags = [ 15 "--with-udev-base-dir=${placeholder "out"}/lib/udev" 16 ]; 17 18 nativeBuildInputs = [ 19 pkgconfig 20 python3 21 ]; 22 23 buildInputs = [ 24 glib 25 libgudev 26 systemd 27 ]; 28 29 doCheck = true; 30 31 meta = with stdenv.lib; { 32 homepage = https://www.freedesktop.org/wiki/Software/libmbim/; 33 description = "Library for talking to WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol"; 34 platforms = platforms.linux; 35 license = licenses.gpl2; 36 }; 37}