btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / us / usbmuxd / package.nix
blob6901767c9cf8a8bd0ca29a24626d9f77f6fe7e9d
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , autoreconfHook
5 , pkg-config
6 , libimobiledevice
7 , libusb1
8 }:
10 stdenv.mkDerivation rec {
11   pname = "usbmuxd";
12   version = "1.1.1+date=2023-05-05";
14   src = fetchFromGitHub {
15     owner = "libimobiledevice";
16     repo = pname;
17     rev = "01c94c77f59404924f1c46d99c4e5e0c7817281b";
18     hash = "sha256-WqbobkzlJ9g5fb9S2QPi3qdpCLx3pxtNlT7qDI63Zp4=";
19   };
21   nativeBuildInputs = [
22     autoreconfHook
23     pkg-config
24   ];
26   propagatedBuildInputs = [
27     libimobiledevice
28     libusb1
29   ];
31   preAutoreconf = ''
32     export RELEASE_VERSION=${version}
33   '';
35   configureFlags = [
36     "--with-udevrulesdir=${placeholder "out"}/lib/udev/rules.d"
37     "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
38   ];
40   meta = with lib; {
41     homepage = "https://github.com/libimobiledevice/usbmuxd";
42     description = "Socket daemon to multiplex connections from and to iOS devices";
43     longDescription = ''
44       usbmuxd stands for "USB multiplexing daemon". This daemon is in charge of
45       multiplexing connections over USB to an iOS device. To users, it means
46       you can sync your music, contacts, photos, etc. over USB. To developers, it
47       means you can connect to any listening localhost socket on the device. usbmuxd
48       is not used for tethering data transfer which uses a dedicated USB interface as
49       a virtual network device. Multiple connections to different TCP ports can happen
50       in parallel. The higher-level layers are handled by libimobiledevice.
51     '';
52     license = licenses.gpl2Plus;
53     platforms = platforms.unix;
54     maintainers = [ ];
55     mainProgram = "usbmuxd";
56   };