lol

modemmanager: 1.2.0 -> 1.4.6

+18 -2
+18 -2
pkgs/tools/networking/modemmanager/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "ModemManager-${version}"; 5 - version = "1.2.0"; 5 + version = "1.4.6"; 6 6 7 7 src = fetchurl { 8 8 url = "http://www.freedesktop.org/software/ModemManager/${name}.tar.xz"; 9 - sha256 = "1g08ciyhys9bi5m45z30kln17zni4r07i5byjaglmwq6np1xincb"; 9 + sha256 = "1kd5nn5rm88c8rgmzwy2fsf3cr7fai7r85mi61kcby0hcgsapv8c"; 10 10 }; 11 11 12 12 nativeBuildInputs = [ intltool pkgconfig ]; ··· 17 17 "--with-polkit" 18 18 "--with-udev-base-dir=$(out)/lib/udev" 19 19 "--with-systemdsystemunitdir=$(out)/etc/systemd/system" 20 + "--sysconfdir=/etc" 21 + "--localstatedir=/var" 20 22 ]; 21 23 24 + installFlags = [ "DESTDIR=\${out}" ]; 25 + 26 + preInstall = '' 27 + mkdir -p $out/etc/systemd/system 28 + ''; 29 + 22 30 postInstall = '' 31 + mv $out/$out/etc/systemd/system/ModemManager.service $out/etc/systemd/system 32 + rm -rf $out/$out/etc 33 + mv $out/$out/* $out 34 + DIR=$out/$out 35 + while rmdir $DIR 2>/dev/null; do 36 + DIR="$(dirname "$DIR")" 37 + done 38 + 23 39 # systemd in NixOS doesn't use `systemctl enable`, so we need to establish 24 40 # aliases ourselves. 25 41 ln -s $out/etc/systemd/system/ModemManager.service \