From 129d1b98512f60d38b3e3939d97d60b357fe7eeb Mon Sep 17 00:00:00 2001 From: Rickard Nilsson Date: Thu, 13 Feb 2014 18:02:15 +0100 Subject: [PATCH] modemmanager: Update from 0.7.991 to 1.2.0 --- pkgs/tools/networking/modemmanager/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/networking/modemmanager/default.nix b/pkgs/tools/networking/modemmanager/default.nix index 3e33b845b600..0640f55bc9eb 100644 --- a/pkgs/tools/networking/modemmanager/default.nix +++ b/pkgs/tools/networking/modemmanager/default.nix @@ -1,11 +1,12 @@ { stdenv, fetchurl, udev, polkit, dbus_glib, ppp, intltool, pkgconfig, libmbim, libqmi }: stdenv.mkDerivation rec { - name = "ModemManager-0.7.991"; + name = "ModemManager-${version}"; + version = "1.2.0"; src = fetchurl { - url = "mirror://gnome/sources/ModemManager/0.7/${name}.tar.xz"; - sha256 = "0p8shqsbgnsazim7s52ylxjk064cbx2n1vm1jgywr7i58hsd6n4y"; + url = "http://www.freedesktop.org/software/ModemManager/${name}.tar.xz"; + sha256 = "1g08ciyhys9bi5m45z30kln17zni4r07i5byjaglmwq6np1xincb"; }; nativeBuildInputs = [ intltool pkgconfig ]; @@ -18,6 +19,13 @@ stdenv.mkDerivation rec { "--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 = { description = "WWAN modem manager, part of NetworkManager"; maintainers = [ stdenv.lib.maintainers.urkud ];