diff options
author | aszlig <aszlig@redmoonstudios.org> | 2014-03-10 02:57:48 +0100 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2014-03-12 10:00:43 +0100 |
commit | 5e565754abcfcb726510e2f6c205b5b6bd0e091f (patch) | |
tree | b5519583a5d968948447a36bb672c1705cd5f6c9 /pkgs/development/mobile | |
parent | bd2d120c0856f0489869b7cdd78b3bc43a300aa3 (diff) | |
download | nixpkgs-5e565754abcfcb726510e2f6c205b5b6bd0e091f.tar nixpkgs-5e565754abcfcb726510e2f6c205b5b6bd0e091f.tar.gz nixpkgs-5e565754abcfcb726510e2f6c205b5b6bd0e091f.tar.bz2 nixpkgs-5e565754abcfcb726510e2f6c205b5b6bd0e091f.tar.lz nixpkgs-5e565754abcfcb726510e2f6c205b5b6bd0e091f.tar.xz nixpkgs-5e565754abcfcb726510e2f6c205b5b6bd0e091f.tar.zst nixpkgs-5e565754abcfcb726510e2f6c205b5b6bd0e091f.zip |
Add new package "xpwn" from @dborca's fork.
This really hase some nice utilities for coping with HFS+ and DMG format. We're going to use it for extracting the xcode DMG, but it could be used for more, even generating DMGs. The reason I'm using the fork instead of the repository from @planetbeing is thet the fork contains a few fixes, especially for dealing with symlinks in HFS+ images. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'pkgs/development/mobile')
-rw-r--r-- | pkgs/development/mobile/xpwn/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/mobile/xpwn/default.nix b/pkgs/development/mobile/xpwn/default.nix new file mode 100644 index 00000000000..b248107141f --- /dev/null +++ b/pkgs/development/mobile/xpwn/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchgit, cmake, zlib, libpng, bzip2, libusb, openssl }: + +stdenv.mkDerivation { + name = "xpwn-0.5.8git"; + + src = fetchgit { + url = "git://github.com/dborca/xpwn.git"; + rev = "4534da88d4e8a32cdc9da9b5326e2cc482c95ef0"; + sha256 = + "1h1ak40fg5bym0hifpii9q2hqdp2m387cwfzb4bl6qq36xpkd6wv"; + }; + + preConfigure = '' + sed -r -i \ + -e 's/(install.*TARGET.*DESTINATION )\.\)/\1bin)/' \ + -e 's!(install.*(FILE|DIR).*DESTINATION )([^)]*)!\1share/xpwn/\3!' \ + */CMakeLists.txt + sed -i -e '/install/d' CMakeLists.txt + ''; + + buildInputs = [ cmake zlib libpng bzip2 libusb openssl ]; + + meta = { + homepage = "http://planetbeing.lighthouseapp.com/projects/15246-xpwn"; + description = "Custom NOR firmware loader/IPSW generator for the iPhone"; + license = stdenv.lib.licenses.gpl3Plus; + }; +} |