nixpkgs/pkgs/by-name/us/usbmuxd/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

59 lines
1.6 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
libimobiledevice,
libusb1,
}:
stdenv.mkDerivation rec {
pname = "usbmuxd";
version = "1.1.1+date=2023-05-05";
src = fetchFromGitHub {
owner = "libimobiledevice";
repo = pname;
rev = "01c94c77f59404924f1c46d99c4e5e0c7817281b";
hash = "sha256-WqbobkzlJ9g5fb9S2QPi3qdpCLx3pxtNlT7qDI63Zp4=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
propagatedBuildInputs = [
libimobiledevice
libusb1
];
preAutoreconf = ''
export RELEASE_VERSION=${version}
'';
configureFlags = [
"--with-udevrulesdir=${placeholder "out"}/lib/udev/rules.d"
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
];
meta = with lib; {
homepage = "https://github.com/libimobiledevice/usbmuxd";
description = "Socket daemon to multiplex connections from and to iOS devices";
longDescription = ''
usbmuxd stands for "USB multiplexing daemon". This daemon is in charge of
multiplexing connections over USB to an iOS device. To users, it means
you can sync your music, contacts, photos, etc. over USB. To developers, it
means you can connect to any listening localhost socket on the device. usbmuxd
is not used for tethering data transfer which uses a dedicated USB interface as
a virtual network device. Multiple connections to different TCP ports can happen
in parallel. The higher-level layers are handled by libimobiledevice.
'';
license = licenses.gpl2Plus;
platforms = platforms.unix;
maintainers = [ ];
mainProgram = "usbmuxd";
};
}