2008-02-03 14:17:59 +01:00
|
|
|
args: with args;
|
2005-09-07 16:57:30 +02:00
|
|
|
|
2008-02-03 14:17:59 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-06-16 11:09:58 +02:00
|
|
|
name = "inkscape-0.46";
|
2005-09-07 16:57:30 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2008-02-03 14:17:59 +01:00
|
|
|
url = "mirror://sf/inkscape/${name}.tar.gz";
|
2008-06-16 11:09:58 +02:00
|
|
|
sha256 = "0flrjqa68vnnn8lrhj86xpa6h2cyzrvjy6873v9id092f86ix1li";
|
2005-09-07 16:57:30 +02:00
|
|
|
};
|
|
|
|
|
2009-04-20 13:18:53 +02:00
|
|
|
patches = [ ./configure-python-libs.patch ./libpng-setjmp.patch ./gtk-clist.patch ];
|
2008-02-22 17:24:58 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
# Python is used at run-time to execute scripts, e.g., those from
|
|
|
|
# the "Effects" menu.
|
2009-10-18 06:43:40 +02:00
|
|
|
python pyxml lxml
|
2008-02-22 17:24:58 +01:00
|
|
|
];
|
|
|
|
|
2005-09-07 16:57:30 +02:00
|
|
|
buildInputs = [
|
2008-02-03 14:17:59 +01:00
|
|
|
pkgconfig perl perlXMLParser gtk libXft fontconfig libpng zlib popt boehmgc
|
|
|
|
libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext
|
2008-02-22 17:24:58 +01:00
|
|
|
makeWrapper
|
2005-09-07 16:57:30 +02:00
|
|
|
];
|
2008-01-31 11:41:45 +01:00
|
|
|
|
2008-02-22 17:24:58 +01:00
|
|
|
configureFlags = "--with-python";
|
|
|
|
|
2009-04-20 13:18:53 +02:00
|
|
|
# Fix compilation on glibc 2.9 by adding missing string header
|
|
|
|
preConfigure = ''
|
|
|
|
echo "#include <string.h>" > tmp.cpp
|
|
|
|
cat tmp.cpp src/dom/io/uristream.cpp > src/dom/io/uristream.cpp.new
|
|
|
|
rm tmp.cpp
|
|
|
|
mv src/dom/io/uristream.cpp.new src/dom/io/uristream.cpp
|
|
|
|
'';
|
|
|
|
|
2008-06-16 11:09:58 +02:00
|
|
|
preBuild = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I./extension/script"
|
|
|
|
'';
|
|
|
|
|
2008-02-22 17:24:58 +01:00
|
|
|
postInstall = ''
|
|
|
|
# Make sure PyXML modules can be found at run-time.
|
|
|
|
for i in "$out/bin/"*
|
|
|
|
do
|
|
|
|
wrapProgram "$i" --prefix PYTHONPATH : \
|
2009-10-18 06:43:40 +02:00
|
|
|
"$(toPythonPath ${pyxml}):$(toPythonPath ${lxml})" || \
|
2008-02-22 17:24:58 +01:00
|
|
|
exit 2
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2008-01-31 11:41:45 +01:00
|
|
|
meta = {
|
2008-02-22 17:24:58 +01:00
|
|
|
license = "GPL";
|
2008-01-31 11:41:45 +01:00
|
|
|
homepage = http://www.inkscape.org;
|
2009-03-03 14:27:40 +01:00
|
|
|
longDescription = ''
|
|
|
|
Inkscape is a feature-rich vector graphics editor that edits
|
|
|
|
files in the W3C SVG (Scalable Vector Graphics) file format.
|
2009-10-18 06:43:53 +02:00
|
|
|
|
|
|
|
If you want to import .eps files install ps2edit
|
2009-03-03 14:27:40 +01:00
|
|
|
'';
|
2009-10-18 06:43:53 +02:00
|
|
|
|
2008-01-31 11:41:45 +01:00
|
|
|
};
|
2005-09-07 16:57:30 +02:00
|
|
|
}
|