inkscape: use python.withPackages instead of wrappers

This commit is contained in:
Frederik Rietdijk 2016-09-25 22:31:25 +02:00
parent a441efcccc
commit 7ff1544981
2 changed files with 5 additions and 14 deletions

View File

@ -1,12 +1,13 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, perl, perlXMLParser, libXft { stdenv, fetchurl, fetchpatch, pkgconfig, perl, perlXMLParser, libXft
, libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm2 , libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm2
, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool , glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool
, gsl, python, numpy, pyxml, lxml, poppler, imagemagick, libwpg, librevenge , gsl, python, poppler, imagemagick, libwpg, librevenge
, libvisio, libcdr, libexif, unzip, automake114x, autoconf , libvisio, libcdr, libexif, unzip, automake114x, autoconf
, boxMakerPlugin ? false # boxmaker plugin , boxMakerPlugin ? false # boxmaker plugin
}: }:
let let
pythonEnv = python.withPackages(ps: with ps; [ pyxml numpy lxml ]);
boxmaker = fetchurl { boxmaker = fetchurl {
# http://www.inkscapeforum.com/viewtopic.php?f=11&t=10403 # http://www.inkscapeforum.com/viewtopic.php?f=11&t=10403
@ -42,11 +43,9 @@ stdenv.mkDerivation rec {
--replace "#if __cplusplus >= 201103L" "#if true" --replace "#if __cplusplus >= 201103L" "#if true"
''; '';
propagatedBuildInputs = [
# Python is used at run-time to execute scripts, e.g., those from # Python is used at run-time to execute scripts, e.g., those from
# the "Effects" menu. # the "Effects" menu.
python pyxml numpy lxml propagatedBuildInputs = [ pythonEnv ];
];
buildInputs = [ buildInputs = [
pkgconfig perl perlXMLParser libXft libpng zlib popt boehmgc pkgconfig perl perlXMLParser libXft libpng zlib popt boehmgc
@ -71,13 +70,6 @@ stdenv.mkDerivation rec {
} }
# Make sure PyXML modules can be found at run-time. # Make sure PyXML modules can be found at run-time.
for i in "$out/bin/"*
do
wrapProgram "$i" --prefix PYTHONPATH : \
"$(toPythonPath ${pyxml}):$(toPythonPath ${lxml}):$(toPythonPath ${numpy})" \
--prefix PATH : ${python}/bin || \
exit 2
done
rm "$out/share/icons/hicolor/icon-theme.cache" rm "$out/share/icons/hicolor/icon-theme.cache"
''; '';

View File

@ -13847,7 +13847,6 @@ in
inginious = callPackage ../servers/inginious {}; inginious = callPackage ../servers/inginious {};
inkscape = callPackage ../applications/graphics/inkscape { inkscape = callPackage ../applications/graphics/inkscape {
inherit (pythonPackages) python pyxml lxml numpy;
lcms = lcms2; lcms = lcms2;
}; };