nixpkgs/pkgs/by-name/io/ios-webkit-debug-proxy/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

83 lines
1.7 KiB
Nix
Raw Normal View History

2024-07-13 19:57:39 +00:00
{
lib,
stdenv,
fetchFromGitHub,
autoconf,
automake,
libtool,
pkg-config,
libimobiledevice,
libplist,
libusb1,
openssl,
ios-webkit-debug-proxy,
nix-update-script,
testers,
2023-05-16 10:47:23 +00:00
}:
2024-07-13 19:57:39 +00:00
stdenv.mkDerivation (finalAttrs: {
2023-05-16 10:47:23 +00:00
pname = "ios-webkit-debug-proxy";
2024-07-13 20:11:17 +00:00
version = "1.9.1";
2023-05-16 10:47:23 +00:00
2024-07-13 19:57:39 +00:00
outputs = [
"out"
"dev"
];
2023-05-16 10:47:23 +00:00
src = fetchFromGitHub {
owner = "google";
2024-07-13 19:57:39 +00:00
repo = "ios-webkit-debug-proxy";
rev = "v${finalAttrs.version}";
2024-07-13 20:11:17 +00:00
hash = "sha256-94gYTv5v4YNwbiUJ/9PIHU+Bnvf5uN12+oMFWKj+J1Y=";
2023-05-16 10:47:23 +00:00
};
patches = [
# Examples compilation breaks with --disable-static, see https://github.com/google/ios-webkit-debug-proxy/issues/399
./0001-Don-t-compile-examples.patch
];
2024-07-13 19:57:39 +00:00
nativeBuildInputs = [
autoconf
automake
libtool
pkg-config
];
2023-05-16 10:47:23 +00:00
2024-07-13 19:57:39 +00:00
buildInputs = [
libimobiledevice
libplist
libusb1
openssl
];
2023-05-16 10:47:23 +00:00
preConfigure = ''
NOCONFIGURE=1 ./autogen.sh
'';
2023-05-16 10:47:23 +00:00
enableParallelBuilding = true;
passthru = {
updateScript = nix-update-script { };
tests.version = testers.testVersion { package = ios-webkit-debug-proxy; };
};
2023-05-16 10:47:23 +00:00
meta = with lib; {
description = "DevTools proxy (Chrome Remote Debugging Protocol) for iOS devices (Safari Remote Web Inspector)";
2023-05-16 10:47:23 +00:00
longDescription = ''
The ios_webkit_debug_proxy (aka iwdp) proxies requests from usbmuxd
daemon over a websocket connection, allowing developers to send commands
to MobileSafari and UIWebViews on real and simulated iOS devices.
'';
homepage = "https://github.com/google/ios-webkit-debug-proxy";
license = licenses.bsd3;
2024-07-13 19:57:39 +00:00
mainProgram = "ios_webkit_debug_proxy";
maintainers = with maintainers; [
abustany
paveloom
];
2023-05-16 10:47:23 +00:00
};
2024-07-13 19:57:39 +00:00
})