nixpkgs/pkgs/development
Peter Simons 29588edfe1 python-wrapper: split 'extraLibs' into 'stdLibs' and 'extraLibs', and add 'postBuild' step
The default setting for extraLibs used to be the set of modules that come with
python by default but aren't usually enabled in our standard python derivation
because they require additional libraries. This meant that users who want to
*add* libraries to that set had to use a fairly complicated override, to add
more entries without loosing the ones set by default.

After this patch, the "standard libraries" such as "curses' are listed in
stdLibs while the extraLibs argument remains empty by default. This allows
users to override extraLibs without overriding the standard libraries.

Furthermore, the wrapper environment can be messed around with in an
additional 'postBuild' step. One nice application of this build step is
to patch scripts and binaries to use the wrapped python interpreter
instead of the pristine one, thereby enabling them to pick up all
modules that have been configured. The following example shows how this
is done for the 'pylint' utility:

  pkgs.python27Full.override {
    extraLibs = [pkgs.pylint];
    postBuild = ''
      cd ${pkgs.pylint}/bin
      for i in *; do
        rm $out/bin/$i
        sed -r -e "s|^exec |exec $out/bin/python -- |" <$i >$out/bin/$i
        chmod +x $out/bin/$i
      done;
    '';
  };
2013-11-07 15:13:02 +01:00
..
arduino Fix some more Hydra evaluation errors 2013-10-08 11:07:14 +02:00
compilers pkgs/development/compilers/ghc/with-packages.nix: add 'ignoreCollisions' parameter 2013-11-07 12:14:19 +01:00
eclipse unmaintain several packages 2013-08-16 23:45:01 +02:00
guile-modules
interpreters python-wrapper: split 'extraLibs' into 'stdLibs' and 'extraLibs', and add 'postBuild' step 2013-11-07 15:13:02 +01:00
libraries haskell-uu-parsinglib: update to version 2.8.1.1 2013-11-07 14:00:08 +01:00
lisp-modules A few hooks for easier library handling when CFFI is used 2013-10-29 11:29:46 +04:00
misc Some description fixes 2013-10-05 19:36:23 +02:00
mobile We need to use ... to allow other parameters 2013-10-15 16:48:42 +02:00
ocaml-modules More description fixes 2013-10-06 12:01:38 +02:00
perl-modules Fix some meta.platforms attributes to build more stuff on Darwin 2013-11-05 10:46:59 +01:00
python-modules Bugfix: zc_buildout_nix, replace links to eggs in the store which have been gc-ed 2013-10-08 01:51:24 +02:00
qtcreator More description fixes 2013-10-06 12:01:38 +02:00
r-modules/generic Wrapped R's package system similarly to perlPackages 2013-09-28 13:19:43 +02:00
ruby-modules Add patch to fix GET Bucket requests to fake-s3 2013-09-04 16:42:20 -04:00
tools Update some more platforms 2013-11-06 10:58:20 +01:00
web Update nodePackages to npm2nix-5.2.0 2013-11-05 18:02:21 -05:00