at v206 33 lines 1.0 kB view raw
1{ stdenv, fetchgit, cmake, zlib, libpng, bzip2, libusb1, openssl }: 2 3stdenv.mkDerivation { 4 name = "xpwn-0.5.8git"; 5 6 src = fetchgit { 7 url = "git://github.com/dborca/xpwn.git"; 8 rev = "4534da88d4e8a32cdc9da9b5326e2cc482c95ef0"; 9 sha256 = "1h1ak40fg5bym0hifpii9q2hqdp2m387cwfzb4bl6qq36xpkd6wv"; 10 }; 11 12 preConfigure = '' 13 rm BUILD # otherwise `mkdir build` fails on case insensitive file systems 14 sed -r -i \ 15 -e 's/(install.*TARGET.*DESTINATION )\.\)/\1bin)/' \ 16 -e 's!(install.*(FILE|DIR).*DESTINATION )([^)]*)!\1share/xpwn/\3!' \ 17 */CMakeLists.txt 18 sed -i -e '/install/d' CMakeLists.txt 19 ''; 20 21 buildInputs = [ cmake zlib libpng bzip2 libusb1 openssl ]; 22 23 cmakeFlags = [ 24 "-DCMAKE_OSX_DEPLOYMENT_TARGET=" 25 ]; 26 27 meta = with stdenv.lib; { 28 homepage = "http://planetbeing.lighthouseapp.com/projects/15246-xpwn"; 29 description = "Custom NOR firmware loader/IPSW generator for the iPhone"; 30 license = licenses.gpl3Plus; 31 platforms = with platforms; linux ++ darwin; 32 }; 33}