usbmuxd2: init at unstable-2022-02-07
This commit is contained in:
parent
6e51c97f1c
commit
5453971b64
2 changed files with 87 additions and 0 deletions
85
pkgs/tools/misc/usbmuxd2/default.nix
Normal file
85
pkgs/tools/misc/usbmuxd2/default.nix
Normal file
|
@ -0,0 +1,85 @@
|
|||
{ lib
|
||||
, clangStdenv
|
||||
, fetchFromGitHub
|
||||
, autoreconfHook
|
||||
, pkg-config
|
||||
, libimobiledevice
|
||||
, libusb1
|
||||
, avahi
|
||||
, clang
|
||||
}: let
|
||||
|
||||
libgeneral = clangStdenv.mkDerivation rec {
|
||||
pname = "libgeneral";
|
||||
version = "unstable-2021-12-12";
|
||||
src = fetchFromGitHub {
|
||||
owner = "tihmstar";
|
||||
repo = pname;
|
||||
rev = "017d71edb0a12ff4fa01a39d12cd297d8b3d8d34";
|
||||
sha256 = "sha256-NrSl/BeKe3wahiYTHGRVSq3PLgQfu76kHCC5ziY7cgQ=";
|
||||
};
|
||||
postPatch = ''
|
||||
# Set package version so we don't require git
|
||||
sed -i '/AC_INIT/s/m4_esyscmd.*/${version})/' configure.ac
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
];
|
||||
meta = with lib; {
|
||||
description = "Helper library used by usbmuxd2";
|
||||
homepage = "https://github.com/tihmstar/libgeneral";
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
};
|
||||
|
||||
in
|
||||
clangStdenv.mkDerivation rec {
|
||||
pname = "usbmuxd2";
|
||||
version = "unstable-2022-02-07";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tihmstar";
|
||||
repo = pname;
|
||||
rev = "753b79eaf317c56df6c8b1fb6da5847cc54a0bb0";
|
||||
hash = "sha256-T9bt3KOJwFpdPeFuXfBhkBZNaNzix3Q3D47vASR+fVg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Set package version so we don't require git
|
||||
sed -i '/AC_INIT/s/m4_esyscmd.*/${version})/' configure.ac
|
||||
# Do not check libgeneral version
|
||||
sed -i 's/libgeneral >= 39/libgeneral/' configure.ac
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
clang
|
||||
pkg-config
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
avahi
|
||||
libgeneral
|
||||
libimobiledevice
|
||||
libusb1
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--with-udevrulesdir=${placeholder "out"}/lib/udev/rules.d"
|
||||
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"sbindir=${placeholder "out"}/bin"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/tihmstar/usbmuxd2";
|
||||
description = "A socket daemon to multiplex connections from and to iOS devices";
|
||||
license = licenses.lgpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ onny ];
|
||||
};
|
||||
}
|
|
@ -12550,6 +12550,8 @@ with pkgs;
|
|||
|
||||
usbmuxd = callPackage ../tools/misc/usbmuxd {};
|
||||
|
||||
usbmuxd2 = callPackage ../tools/misc/usbmuxd2 {};
|
||||
|
||||
ustreamer = callPackage ../applications/video/ustreamer { };
|
||||
|
||||
usync = callPackage ../applications/misc/usync { };
|
||||
|
|
Loading…
Reference in a new issue