2017-10-01 20:33:52 +01:00
|
|
|
{ stdenv, lib, fetchgit, cmake, perl, libubox, json_c }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2020-02-12 00:58:00 +00:00
|
|
|
pname = "uqmi";
|
|
|
|
version = "unstable-2019-06-27";
|
2017-10-01 20:33:52 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.openwrt.org/project/uqmi.git";
|
2020-02-12 00:58:00 +00:00
|
|
|
rev = "1965c713937495a5cb029165c16acdb6572c3f87";
|
|
|
|
sha256 = "1gn8sdcl4lwfs3lwabmnjbvdhhk1l42bwbajwds7j4936fpbklx0";
|
2017-10-01 20:33:52 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace data/gen-header.pl --replace /usr/bin/env ""
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake perl ];
|
|
|
|
buildInputs = [ libubox json_c ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tiny QMI command line utility";
|
|
|
|
homepage = "https://git.openwrt.org/?p=project/uqmi.git;a=summary";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
|
|
|
};
|
|
|
|
}
|