mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-16 06:47:09 +03:00
d91165c368
svn path=/nixpkgs/trunk/; revision=29971
54 lines
1.5 KiB
Nix
54 lines
1.5 KiB
Nix
{ stdenv, fetchurl, pkgconfig, perl, perlXMLParser, gtk, libXft
|
|
, libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm
|
|
, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool
|
|
, gsl, python, pyxml, lxml, poppler }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "inkscape-0.48.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/inkscape/${name}.tar.bz2";
|
|
sha256 = "10v7ixdz7f8vgk2wv0m81zli9p0f446cm1f4aqlvni1ndsx44fi2";
|
|
};
|
|
|
|
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 poppler
|
|
];
|
|
|
|
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
|
|
rm $out/share/icons/hicolor/icon-theme.cache
|
|
'';
|
|
|
|
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.
|
|
'';
|
|
};
|
|
}
|