nixpkgs/pkgs/applications/graphics/inkscape/default.nix
Eelco Dolstra a71971f671 * Inkscape 0.47.
svn path=/nixpkgs/trunk/; revision=18641
2009-11-26 12:39:22 +00:00

50 lines
1.2 KiB
Nix

args: with args;
stdenv.mkDerivation rec {
name = "inkscape-0.47";
src = fetchurl {
url = "mirror://sourceforge/inkscape/${name}.tar.gz";
sha256 = "15wvcllq0nj69hkyanzvxbjhlq06cwabqabaa54n5n4307hrp2g5";
};
patches = [ ./configure-python-libs.patch ];
propagatedBuildInputs = [
# Python is used at run-time to execute scripts, e.g., those from
# the "Effects" menu.
python pyxml lxml
];
buildInputs = [
pkgconfig perl perlXMLParser gtk libXft libpng zlib popt boehmgc
libxml2 libxslt glib gtkmm glibmm libsigcxx lcms boost gettext
makeWrapper intltool gsl
];
configureFlags = "--with-python";
postInstall = ''
# Make sure PyXML modules can be found at run-time.
for i in "$out/bin/"*
do
wrapProgram "$i" --prefix PYTHONPATH : \
"$(toPythonPath ${pyxml}):$(toPythonPath ${lxml})" || \
exit 2
done
'';
NIX_LDFLAGS = "-lX11";
meta = {
license = "GPL";
homepage = http://www.inkscape.org;
longDescription = ''
Inkscape is a feature-rich vector graphics editor that edits
files in the W3C SVG (Scalable Vector Graphics) file format.
If you want to import .eps files install ps2edit.
'';
};
}