mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
sip: fix build on darwin
* prevent complaints about python not being built as a framework
This commit is contained in:
parent
6fc89eead6
commit
fbe2fe36e3
1 changed files with 12 additions and 5 deletions
|
@ -11,13 +11,20 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1bwdd5xhrx8dx8rr86r043ddlbg7gd1vh0pm2nxw5l1yprwa7paa";
|
||||
};
|
||||
|
||||
configurePhase = "python ./configure.py -d $out/lib/${python.libPrefix}/site-packages -b $out/bin -e $out/include";
|
||||
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
|
||||
'' + ''
|
||||
python ./configure.py -d $out/lib/${python.libPrefix}/site-packages \
|
||||
-b $out/bin -e $out/include
|
||||
'';
|
||||
|
||||
buildInputs = [ python ];
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Creates C++ bindings for Python modules";
|
||||
license = "GPL";
|
||||
maintainers = with stdenv.lib.maintainers; [ urkud sander ];
|
||||
license = licenses.gpl;
|
||||
maintainers = with maintainers; [ lovek323 sander urkud ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue