From 487310e921f509dc70e5632a87bf227300ee7480 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Wed, 29 Apr 2015 17:46:14 -0500 Subject: [PATCH] usbmuxd: update to 1.1.0 --- pkgs/tools/misc/usbmuxd/default.nix | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/pkgs/tools/misc/usbmuxd/default.nix b/pkgs/tools/misc/usbmuxd/default.nix index b95dfde98500..accd3b8070ad 100644 --- a/pkgs/tools/misc/usbmuxd/default.nix +++ b/pkgs/tools/misc/usbmuxd/default.nix @@ -1,24 +1,22 @@ -{ stdenv, fetchurl, cmake, libplist, libusb1, pkgconfig }: +{ stdenv, fetchurl, libplist, libusb1, pkgconfig, libimobiledevice }: stdenv.mkDerivation rec { - name = "usbmuxd-1.0.7"; + name = "usbmuxd-${version}"; + version = "1.1.0"; src = fetchurl { - url = "http://marcansoft.com/uploads/usbmuxd/${name}.tar.bz2"; - sha256 = "09swwr6x46qxmwylrylnyqh4pznr0swla9gijggwxxw8dw82r840"; + url = "http://www.libimobiledevice.org/downloads/${name}.tar.bz2"; + sha256 = "0bdlc7a8plvglqqx39qqampqm6y0hcdws76l9dffwl22zss4i29y"; }; - nativeBuildInputs = [ cmake pkgconfig ]; - propagatedBuildInputs = [ libusb1 libplist ]; + nativeBuildInputs = [ pkgconfig ]; + propagatedBuildInputs = [ libusb1 libplist libimobiledevice ]; - patchPhase = - '' - sed -e 's,/lib/udev,lib/udev,' -i udev/CMakeLists.txt - sed -e 's,/bin/echo,echo,g' -i Modules/describe.sh - ''; + preConfigure = '' + configureFlags="$configureFlags --with-udevrulesdir=$out/lib/udev/rules.d" + configureFlags="$configureFlags --with-systemdsystemunitdir=$out/lib/systemd/system" + ''; - - cmakeFlags = ''-DLIB_SUFFIX=''; meta = { homepage = http://marcansoft.com/blog/iphonelinux/usbmuxd/; description = "USB Multiplex Daemon (for talking to iPhone or iPod)";