Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ios-deploy: move out of nodePackages
This doesn’t need nodePackages to work, so we can move it to pkgs/os-specific/darwin. Note that it still requires xcodebuild to work.
- Loading branch information
1 parent
4855aa6
commit 10aa776
Showing
4 changed files
with
37 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ lib, stdenvNoCC, rsync, fetchFromGitHub }: | ||
|
||
# Note this is impure, using system XCode to build ios-deploy. We | ||
# should have a special flag for users to enable this. | ||
|
||
let version = "1.11.0"; | ||
in stdenvNoCC.mkDerivation { | ||
pname = "ios-deploy"; | ||
inherit version; | ||
src = fetchFromGitHub { | ||
owner = "ios-control"; | ||
repo = "ios-deploy"; | ||
rev = version; | ||
sha256 = "0hqwikdrcnslx4kkw9b0n7n443gzn2gbrw15pp2fnkcw5s0698sc"; | ||
}; | ||
nativeBuildInputs = [ rsync ]; | ||
buildPhase = '' | ||
LD=$CC | ||
tmp=$(mktemp -d) | ||
ln -s /usr/bin/xcodebuild $tmp | ||
export PATH="$PATH:$tmp" | ||
xcodebuild -configuration Release SYMROOT=build OBJROOT=$tmp | ||
''; | ||
checkPhase = '' | ||
xcodebuild test -scheme ios-deploy-tests -configuration Release SYMROOT=build | ||
''; | ||
installPhase = '' | ||
install -D build/Release/ios-deploy $out/bin/ios-deploy | ||
''; | ||
meta = { | ||
platforms = lib.platforms.darwin; | ||
description = "Install and debug iOS apps from the command line. Designed to work on un-jailbroken devices"; | ||
license = lib.licenses.gpl3; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters