summary refs log tree commit diff
path: root/pkgs/tools/misc/usbmuxd/default.nix
blob: fc8c40ea4e0675655ff780f735ef1a2b0a0f62bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, libplist, libusb1, pkgconfig, libimobiledevice }:

stdenv.mkDerivation rec {
  name = "usbmuxd-${version}";
  version = "1.1.0";

  src = fetchurl {
    url = "http://www.libimobiledevice.org/downloads/${name}.tar.bz2";
    sha256 = "0bdlc7a8plvglqqx39qqampqm6y0hcdws76l9dffwl22zss4i29y";
  };

  nativeBuildInputs = [ pkgconfig ];
  propagatedBuildInputs = [ libusb1 libplist libimobiledevice ];

  preConfigure = ''
    configureFlags="$configureFlags --with-udevrulesdir=$out/lib/udev/rules.d"
    configureFlags="$configureFlags --with-systemdsystemunitdir=$out/lib/systemd/system"
  '';

  meta = {
    homepage = http://marcansoft.com/blog/iphonelinux/usbmuxd/;
    description = "USB Multiplex Daemon (for talking to iPhone or iPod)";
    longDescription = ''
      usbmuxd: USB Multiplex Daemon. This bit of software is in charge of
      talking to your iPhone or iPod Touch over USB and coordinating access to
      its services by other applications.'';
    platforms = stdenv.lib.platforms.linux;
    maintainers = [ ];
  };
}