Merge pull request #57689 from worldofpeace/ModemManager/bump
modemmanager: 1.7.990 -> 1.10.0
This commit is contained in:
commit
d22aeb0c43
@ -1,24 +1,35 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, glib, python, udev, libgudev }:
|
{ stdenv, fetchurl, pkgconfig, glib, python3, systemd, libgudev }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libmbim-1.16.2";
|
pname = "libmbim";
|
||||||
|
version = "1.18.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.freedesktop.org/software/libmbim/${name}.tar.xz";
|
url = "https://www.freedesktop.org/software/libmbim/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0qmjvjbgs9m8qsaiq5arikzglgaas9hh1968bi7sy3905kp4yjgb";
|
sha256 = "10mjjy860aakfd3h1yaj9l1jw816amrpwmyqlx37j21xv0l03x3c";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" "man" ];
|
outputs = [ "out" "dev" "man" ];
|
||||||
|
|
||||||
preConfigure = ''
|
configureFlags = [
|
||||||
patchShebangs .
|
"--with-udev-base-dir=${placeholder ''out''}/lib/udev"
|
||||||
'';
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ glib udev libgudev python ];
|
pkgconfig
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
libgudev
|
||||||
|
systemd
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.freedesktop.org/software/libmbim/;
|
homepage = https://www.freedesktop.org/wiki/Software/libmbim/;
|
||||||
description = "Library for talking to WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol";
|
description = "Library for talking to WWAN modems and devices which speak the Mobile Interface Broadband Model (MBIM) protocol";
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
@ -1,26 +1,35 @@
|
|||||||
{ stdenv, fetchurl, pkgconfig, glib, python, libgudev, libmbim }:
|
{ stdenv, fetchurl, pkgconfig, glib, python3, libgudev, libmbim }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "libqmi-1.20.2";
|
pname = "libqmi";
|
||||||
|
version = "1.22.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.freedesktop.org/software/libqmi/${name}.tar.xz";
|
url = "https://www.freedesktop.org/software/libqmi/${pname}-${version}.tar.xz";
|
||||||
sha256 = "0i6aw8jyxv84d5x8lj2g9lb8xxf1dyad8n3q0kw164pyig55jd67";
|
sha256 = "09w20dsgr16bgbqw5ds7r6j2s6ihwyalh9zpbjhcn7cvm0afbwgi";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" "devdoc" ];
|
outputs = [ "out" "dev" "devdoc" ];
|
||||||
|
|
||||||
preBuild = ''
|
configureFlags = [
|
||||||
patchShebangs .
|
"--with-udev-base-dir=${placeholder ''out''}/lib/udev"
|
||||||
'';
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [
|
||||||
buildInputs = [ glib python libgudev libmbim ];
|
pkgconfig
|
||||||
|
python3
|
||||||
|
];
|
||||||
|
|
||||||
configureFlags = ["--enable-mbim-qmux" ];
|
buildInputs = [
|
||||||
|
glib
|
||||||
|
libgudev
|
||||||
|
libmbim
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = http://www.freedesktop.org/wiki/Software/libqmi/;
|
homepage = https://www.freedesktop.org/wiki/Software/libqmi/;
|
||||||
description = "Modem protocol helper library";
|
description = "Modem protocol helper library";
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
@ -1,52 +1,40 @@
|
|||||||
{ stdenv, fetchurl, glib, udev, libgudev, polkit, ppp, gettext, pkgconfig
|
{ stdenv, fetchurl, glib, udev, libgudev, polkit, ppp, gettext, pkgconfig
|
||||||
, libmbim, libqmi, systemd, fetchpatch }:
|
, libmbim, libqmi, systemd, vala, gobject-introspection, dbus }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "modem-manager-${version}";
|
pname = "modem-manager";
|
||||||
version = "1.7.990";
|
version = "1.10.0";
|
||||||
|
|
||||||
package = "ModemManager";
|
package = "ModemManager";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.freedesktop.org/software/${package}/${package}-${version}.tar.xz";
|
url = "https://www.freedesktop.org/software/${package}/${package}-${version}.tar.xz";
|
||||||
sha256 = "1v4hixmghlrw7w4ajq2x4k62js0594h223d0yma365zwqr7hjrfl";
|
sha256 = "1qkfnxqvaraz1npahqvm5xc73mbxxic8msnsjmlwkni5c2ckj3zx";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gettext pkgconfig ];
|
nativeBuildInputs = [ vala gobject-introspection gettext pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ glib udev libgudev polkit ppp libmbim libqmi systemd ];
|
buildInputs = [ glib udev libgudev polkit ppp libmbim libqmi systemd ];
|
||||||
|
|
||||||
patches = [
|
|
||||||
# Patch dependency on glib headers, this breaks packages using core headers (networkmanager-qt)
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://cgit.freedesktop.org/ModemManager/ModemManager/patch/?id=0f377f943eeb81472fd73189f2c3d8fc65b8c609";
|
|
||||||
sha256 = "0av0sqdvbhwjnhqqylkc7rmqcj6awqmz5693l9x93nlwp7zya95j";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--with-polkit"
|
"--with-polkit"
|
||||||
"--with-udev-base-dir=$(out)/lib/udev"
|
"--with-udev-base-dir=${placeholder ''out''}/lib/udev"
|
||||||
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
"--with-dbus-sys-dir=${placeholder ''out''}/etc/dbus-1/system.d"
|
||||||
|
"--with-systemdsystemunitdir=${placeholder ''out''}/etc/systemd/system"
|
||||||
"--sysconfdir=/etc"
|
"--sysconfdir=/etc"
|
||||||
"--localstatedir=/var"
|
"--localstatedir=/var"
|
||||||
"--with-suspend-resume=systemd"
|
"--with-systemd-suspend-resume"
|
||||||
|
"--with-systemd-journal"
|
||||||
];
|
];
|
||||||
|
|
||||||
installFlags = [ "DESTDIR=\${out}" ];
|
preCheck = ''
|
||||||
|
export G_TEST_DBUS_DAEMON="${dbus.daemon}/bin/dbus-daemon"
|
||||||
preInstall = ''
|
|
||||||
mkdir -p $out/etc/systemd/system
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
# rename to modem-manager to be in style
|
# rename to modem-manager to be in style
|
||||||
mv $out/$out/etc/systemd/system/ModemManager.service $out/etc/systemd/system/modem-manager.service
|
mv $out/etc/systemd/system/ModemManager.service $out/etc/systemd/system/modem-manager.service
|
||||||
rm -rf $out/$out/etc
|
|
||||||
mv $out/$out/* $out
|
|
||||||
DIR=$out/$out
|
|
||||||
while rmdir $DIR 2>/dev/null; do
|
|
||||||
DIR="$(dirname "$DIR")"
|
|
||||||
done
|
|
||||||
|
|
||||||
# systemd in NixOS doesn't use `systemctl enable`, so we need to establish
|
# systemd in NixOS doesn't use `systemctl enable`, so we need to establish
|
||||||
# aliases ourselves.
|
# aliases ourselves.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user