3
0
Fork 0
forked from mirrors/nixpkgs

modemmanager: Update from 0.7.991 to 1.2.0

This commit is contained in:
Rickard Nilsson 2014-02-13 18:02:15 +01:00
parent 690fc8cbe1
commit 129d1b9851

View file

@ -1,11 +1,12 @@
{ stdenv, fetchurl, udev, polkit, dbus_glib, ppp, intltool, pkgconfig, libmbim, libqmi }: { stdenv, fetchurl, udev, polkit, dbus_glib, ppp, intltool, pkgconfig, libmbim, libqmi }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ModemManager-0.7.991"; name = "ModemManager-${version}";
version = "1.2.0";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/ModemManager/0.7/${name}.tar.xz"; url = "http://www.freedesktop.org/software/ModemManager/${name}.tar.xz";
sha256 = "0p8shqsbgnsazim7s52ylxjk064cbx2n1vm1jgywr7i58hsd6n4y"; sha256 = "1g08ciyhys9bi5m45z30kln17zni4r07i5byjaglmwq6np1xincb";
}; };
nativeBuildInputs = [ intltool pkgconfig ]; nativeBuildInputs = [ intltool pkgconfig ];
@ -18,6 +19,13 @@ stdenv.mkDerivation rec {
"--with-systemdsystemunitdir=$(out)/etc/systemd/system" "--with-systemdsystemunitdir=$(out)/etc/systemd/system"
]; ];
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
'';
meta = { meta = {
description = "WWAN modem manager, part of NetworkManager"; description = "WWAN modem manager, part of NetworkManager";
maintainers = [ stdenv.lib.maintainers.urkud ]; maintainers = [ stdenv.lib.maintainers.urkud ];