Files
nixpkgs/pkgs/by-name/io/ios-deploy/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

59 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
testers,
}:
let
privateFrameworks = "/Library/Apple/System/Library/PrivateFrameworks";
in
stdenv.mkDerivation (finalAttrs: {
pname = "ios-deploy";
version = "1.12.2";
src = fetchFromGitHub {
owner = "ios-control";
repo = "ios-deploy";
rev = finalAttrs.version;
hash = "sha256-TVGC+f+1ow3b93CK3PhIL70le5SZxxb2ug5OkIg8XCA=";
};
buildPhase = ''
runHook preBuild
awk '{ print "\""$0"\\n\""}' src/scripts/lldb.py >> src/ios-deploy/lldb.py.h
clang src/ios-deploy/ios-deploy.m \
-framework Foundation \
-F${privateFrameworks} -framework MobileDevice \
-o ios-deploy
runHook postBuild
'';
installPhase = ''
runHook preInstall
install -Dm755 ios-deploy $out/bin/ios-deploy
runHook postInstall
'';
__impureHostDeps = [
privateFrameworks
];
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
meta = {
description = "Install and debug iPhone apps from the command line, without using Xcode";
homepage = "https://github.com/ios-control/ios-deploy";
license = lib.licenses.gpl3Plus;
mainProgram = "ios-deploy";
maintainers = with lib.maintainers; [ wegank ];
platforms = lib.platforms.darwin;
};
})