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-01-26 19:51:52 +01:00
|
|
|
patches = [ ./configure-python-libs.patch ./libpng-setjmp.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.
|
|
|
|
python pyxml
|
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
|
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 : \
|
2008-06-16 11:09:58 +02:00
|
|
|
"$(toPythonPath ${pyxml})" || \
|
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.
|
|
|
|
'';
|
2008-01-31 11:41:45 +01:00
|
|
|
};
|
2005-09-07 16:57:30 +02:00
|
|
|
}
|