mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 08:01:14 +00:00
7cd6dd9ada
This now also includes support vor visio and cdr and also adds the missing dependency on libexif. Forcing -lX11 in NIX_LDFLAGS is no longer needed in 0.91, so we drop that as well as the patch and the --with-python configure flag, which is now no longer even valid. Tests now seem to run fine without -j1 as well. I also tested it against the DXF test file mentioned in #3449, to be sure we don't regress here. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
62 lines
1.8 KiB
Nix
62 lines
1.8 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, imagemagick, libwpg, librevenge
|
|
, libvisio, libcdr, libexif
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "inkscape-0.91";
|
|
|
|
src = fetchurl {
|
|
url = "https://inkscape.global.ssl.fastly.net/media/resources/file/"
|
|
+ "${name}.tar.bz2";
|
|
sha256 = "06ql3x732x2rlnanv0a8aharsnj91j5kplksg574090rks51z42d";
|
|
};
|
|
|
|
postPatch = ''
|
|
patchShebangs share/extensions
|
|
'';
|
|
|
|
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 imagemagick libwpg librevenge
|
|
libvisio libcdr libexif
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
doCheck = true;
|
|
|
|
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})" \
|
|
--prefix PATH : ${python}/bin || \
|
|
exit 2
|
|
done
|
|
rm "$out/share/icons/hicolor/icon-theme.cache"
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
license = "GPL";
|
|
homepage = http://www.inkscape.org;
|
|
description = "Vector graphics editor";
|
|
platforms = platforms.all;
|
|
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.
|
|
'';
|
|
};
|
|
}
|