2014-02-08 20:16:34 +01:00
|
|
|
{ stdenv, fetchurl, udev, polkit, dbus_glib, ppp, intltool, pkgconfig, libmbim, libqmi }:
|
2012-01-04 10:05:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-02-13 18:02:15 +01:00
|
|
|
name = "ModemManager-${version}";
|
|
|
|
version = "1.2.0";
|
2012-01-04 10:05:22 +01:00
|
|
|
|
2014-02-08 20:16:34 +01:00
|
|
|
src = fetchurl {
|
2014-02-13 18:02:15 +01:00
|
|
|
url = "http://www.freedesktop.org/software/ModemManager/${name}.tar.xz";
|
|
|
|
sha256 = "1g08ciyhys9bi5m45z30kln17zni4r07i5byjaglmwq6np1xincb";
|
2012-01-04 10:05:22 +01:00
|
|
|
};
|
|
|
|
|
2012-12-28 19:20:09 +01:00
|
|
|
nativeBuildInputs = [ intltool pkgconfig ];
|
2012-01-04 10:05:22 +01:00
|
|
|
|
2014-02-08 20:16:34 +01:00
|
|
|
buildInputs = [ udev polkit dbus_glib ppp libmbim libqmi ];
|
2012-01-04 10:05:22 +01:00
|
|
|
|
2014-02-08 20:16:34 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-polkit"
|
|
|
|
"--with-udev-base-dir=$(out)/lib/udev"
|
|
|
|
"--with-systemdsystemunitdir=$(out)/etc/systemd/system"
|
|
|
|
];
|
2012-01-04 10:05:22 +01:00
|
|
|
|
2014-02-13 18:02:15 +01:00
|
|
|
postInstall = ''
|
|
|
|
# systemd in NixOS doesn't use `systemctl enable`, so we need to establish
|
|
|
|
# aliases ourselves.
|
|
|
|
ln -s $out/etc/systemd/system/ModemManager.service \
|
|
|
|
$out/etc/systemd/system/dbus-org.freedesktop.ModemManager1.service
|
|
|
|
'';
|
|
|
|
|
2012-01-04 10:05:22 +01:00
|
|
|
meta = {
|
|
|
|
description = "WWAN modem manager, part of NetworkManager";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.urkud ];
|
2012-01-06 17:14:02 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2012-01-04 10:05:22 +01:00
|
|
|
};
|
|
|
|
}
|