2018-02-01 21:12:18 +01:00
|
|
|
{ stdenv, fetchgit, cmake, zlib, libpng, bzip2, libusb, openssl }:
|
2014-03-10 02:57:48 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xpwn-0.5.8git";
|
|
|
|
|
|
|
|
src = fetchgit {
|
2014-09-11 05:10:02 +02:00
|
|
|
url = "git://github.com/dborca/xpwn.git";
|
|
|
|
rev = "4534da88d4e8a32cdc9da9b5326e2cc482c95ef0";
|
|
|
|
sha256 = "1h1ak40fg5bym0hifpii9q2hqdp2m387cwfzb4bl6qq36xpkd6wv";
|
2014-03-10 02:57:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
preConfigure = ''
|
2014-06-07 00:06:03 +02:00
|
|
|
rm BUILD # otherwise `mkdir build` fails on case insensitive file systems
|
2014-03-10 02:57:48 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2018-02-01 21:12:18 +01:00
|
|
|
buildInputs = [ cmake zlib libpng bzip2 libusb openssl ];
|
2014-03-10 02:57:48 +01:00
|
|
|
|
2014-09-11 05:10:02 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_OSX_DEPLOYMENT_TARGET="
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://planetbeing.lighthouseapp.com/projects/15246-xpwn";
|
2014-03-10 02:57:48 +01:00
|
|
|
description = "Custom NOR firmware loader/IPSW generator for the iPhone";
|
2014-09-11 05:10:02 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2014-03-10 02:57:48 +01:00
|
|
|
};
|
|
|
|
}
|