inkscape: use python.withPackages instead of wrappers
This commit is contained in:
parent
a441efcccc
commit
7ff1544981
@ -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.
|
propagatedBuildInputs = [ pythonEnv ];
|
||||||
python pyxml numpy lxml
|
|
||||||
];
|
|
||||||
|
|
||||||
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"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user