Files
nixpkgs/pkgs/by-name/us/usbfluxd/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
libimobiledevice,
libusb1,
libusbmuxd,
usbmuxd,
libplist,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "usbfluxd";
version = "1.0";
src = fetchFromGitHub {
owner = "corellium";
repo = "usbfluxd";
tag = "v${finalAttrs.version}";
hash = "sha256-tfAy3e2UssPlRB/8uReLS5f8N/xUUzbjs8sKNlr40T0=";
};
nativeBuildInputs = [
autoreconfHook
pkg-config
];
buildInputs = [
libimobiledevice
libusb1
libusbmuxd
usbmuxd
libplist
];
postPatch = ''
substituteInPlace configure.ac \
--replace-fail 'with_static_libplist=yes' 'with_static_libplist=no'
substituteInPlace usbfluxd/utils.h \
--replace-fail PLIST_FORMAT_BINARY //PLIST_FORMAT_BINARY \
--replace-fail PLIST_FORMAT_XML, NOT_PLIST_FORMAT_XML
'';
meta = {
homepage = "https://github.com/corellium/usbfluxd";
description = "Redirects the standard usbmuxd socket to allow connections to local and remote usbmuxd instances so remote devices appear connected locally";
license = lib.licenses.gpl2Plus;
mainProgram = "usbfluxctl";
maintainers = with lib.maintainers; [ x807x ];
};
})