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