From fbe2fe36e35f0b665cc919c6de897af966fec8bd Mon Sep 17 00:00:00 2001 From: "Jason \\\"Don\\\" O'Conal" Date: Thu, 4 Jul 2013 15:07:02 +1000 Subject: [PATCH] sip: fix build on darwin * prevent complaints about python not being built as a framework --- .../python-modules/python-sip/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/python-sip/default.nix b/pkgs/development/python-modules/python-sip/default.nix index fa958971cf38..fa2bae7ae27c 100644 --- a/pkgs/development/python-modules/python-sip/default.nix +++ b/pkgs/development/python-modules/python-sip/default.nix @@ -10,14 +10,21 @@ 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; }; }