2010-03-23 14:04:47 +00:00
|
|
|
{ stdenv, fetchurl, python }:
|
2009-02-25 16:05:13 +00:00
|
|
|
|
2010-04-11 22:03:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-01-16 07:56:08 +00:00
|
|
|
name = "sip-4.14.7"; # kde410.pykde4 doesn't build with 4.15
|
2014-01-08 08:06:08 +00:00
|
|
|
|
2009-02-25 16:05:13 +00:00
|
|
|
src = fetchurl {
|
2014-01-08 08:06:08 +00:00
|
|
|
url = "mirror://sourceforge/pyqt/sip/${name}/${name}.tar.gz";
|
2014-01-16 07:56:08 +00:00
|
|
|
sha256 = "1dv1sdwfmnq481v80k2951amzs9s87d4qhk0hpwrhb1sllh92rh5";
|
2009-02-25 16:05:13 +00:00
|
|
|
};
|
2013-07-04 06:07:02 +01:00
|
|
|
|
|
|
|
configurePhase = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
# prevent sip from complaining about python not being built as a framework
|
|
|
|
sed -i -e 1564,1565d siputils.py
|
|
|
|
'' + ''
|
2014-01-08 08:06:08 +00:00
|
|
|
${python.executable} ./configure.py \
|
|
|
|
-d $out/lib/${python.libPrefix}/site-packages \
|
2013-07-04 06:07:02 +01:00
|
|
|
-b $out/bin -e $out/include
|
|
|
|
'';
|
2014-01-08 08:06:08 +00:00
|
|
|
|
2009-02-25 16:05:13 +00:00
|
|
|
buildInputs = [ python ];
|
2014-01-08 08:06:08 +00:00
|
|
|
|
2013-07-04 06:07:02 +01:00
|
|
|
meta = with stdenv.lib; {
|
2009-09-10 18:00:30 +01:00
|
|
|
description = "Creates C++ bindings for Python modules";
|
2014-01-08 08:06:08 +00:00
|
|
|
homepage = "http://www.riverbankcomputing.co.uk/";
|
2013-07-14 00:08:03 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2013-07-04 06:07:02 +01:00
|
|
|
maintainers = with maintainers; [ lovek323 sander urkud ];
|
|
|
|
platforms = platforms.all;
|
2009-09-10 18:00:30 +01:00
|
|
|
};
|
2009-02-25 16:05:13 +00:00
|
|
|
}
|