diff options
author | Jason \"Don\" O'Conal <lovek323@gmail.com> | 2013-07-04 15:07:02 +1000 |
---|---|---|
committer | Rok Garbas <rok@garbas.si> | 2013-07-12 16:26:47 +0200 |
commit | fbe2fe36e35f0b665cc919c6de897af966fec8bd (patch) | |
tree | 498126ae47d282b63b1ff53b2db5c0dac02908a5 /pkgs/development | |
parent | 6fc89eead6ff281ef8d482c08ef4e61fd16ea32d (diff) | |
download | nixpkgs-fbe2fe36e35f0b665cc919c6de897af966fec8bd.tar nixpkgs-fbe2fe36e35f0b665cc919c6de897af966fec8bd.tar.gz nixpkgs-fbe2fe36e35f0b665cc919c6de897af966fec8bd.tar.bz2 nixpkgs-fbe2fe36e35f0b665cc919c6de897af966fec8bd.tar.lz nixpkgs-fbe2fe36e35f0b665cc919c6de897af966fec8bd.tar.xz nixpkgs-fbe2fe36e35f0b665cc919c6de897af966fec8bd.tar.zst nixpkgs-fbe2fe36e35f0b665cc919c6de897af966fec8bd.zip |
sip: fix build on darwin
* prevent complaints about python not being built as a framework
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/python-sip/default.nix | 17 |
1 files 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 fa958971cf3..fa2bae7ae27 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; }; } |