Files
nixpkgs/pkgs/by-name/us/usbmuxd2/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

69 lines
1.5 KiB
Nix

{
lib,
clangStdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
libimobiledevice,
libusb1,
avahi,
clang,
git,
libgeneral,
}:
clangStdenv.mkDerivation {
pname = "usbmuxd2";
version = "unstable-2023-12-12";
src = fetchFromGitHub {
owner = "tihmstar";
repo = "usbmuxd2";
rev = "2ce399ddbacb110bd5a83a6b8232d42c9a9b6e84";
hash = "sha256-UVLLE73XuWTgGlpTMxUDykFmiBDqz6NCRO2rpRAYfow=";
# Leave DotGit so that autoconfigure can read version from git tags
leaveDotGit = true;
};
postPatch = ''
# Checking for libgeneral version still fails
sed -i 's/libgeneral >= $LIBGENERAL_MINVERS_STR/libgeneral/' configure.ac
# Otherwise, it will complain about no matching function for call to 'find'
sed -i 1i'#include <algorithm>' usbmuxd2/Muxer.cpp
'';
nativeBuildInputs = [
autoreconfHook
clang
git
pkg-config
];
propagatedBuildInputs = [
avahi
libgeneral
libimobiledevice
libusb1
];
doInstallCheck = true;
configureFlags = [
"--with-udevrulesdir=${placeholder "out"}/lib/udev/rules.d"
"--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
];
makeFlags = [
"sbindir=${placeholder "out"}/bin"
];
meta = {
homepage = "https://github.com/tihmstar/usbmuxd2";
description = "Socket daemon to multiplex connections from and to iOS devices";
license = lib.licenses.lgpl3;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ onny ];
mainProgram = "usbmuxd";
};
}