2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, perl, perlXMLParser, libXft
|
|
|
|
, libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm2
|
2010-07-28 17:35:01 +02:00
|
|
|
, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper, intltool
|
2016-10-18 18:26:54 +02:00
|
|
|
, gsl, python2, poppler, imagemagick, libwpg, librevenge
|
2017-01-09 10:02:10 +01:00
|
|
|
, libvisio, libcdr, libexif, automake114x, cmake
|
2015-02-22 08:14:53 +01:00
|
|
|
}:
|
2005-09-07 16:57:30 +02:00
|
|
|
|
2017-03-09 01:26:26 +01:00
|
|
|
let
|
2016-10-18 18:26:54 +02:00
|
|
|
python2Env = python2.withPackages(ps: with ps; [ numpy lxml ]);
|
2015-05-21 15:43:02 +02:00
|
|
|
in
|
|
|
|
|
2008-02-03 14:17:59 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-03-09 01:26:26 +01:00
|
|
|
name = "inkscape-0.92.1";
|
2005-09-07 16:57:30 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-03-09 01:26:26 +01:00
|
|
|
url = "https://media.inkscape.org/dl/resources/file/${name}.tar_XlpI7qT.bz2";
|
|
|
|
sha256 = "01chr3vh728dkg7l7lilwgmh5nrp784khdhjgpqjbq9dh2zhax15";
|
2005-09-07 16:57:30 +02:00
|
|
|
};
|
|
|
|
|
2017-03-09 01:26:26 +01:00
|
|
|
unpackPhase = ''
|
|
|
|
cp $src ${name}.tar.bz2
|
|
|
|
tar xvjf ${name}.tar.bz2 > /dev/null
|
|
|
|
cd ${name}
|
|
|
|
'';
|
|
|
|
|
2015-02-22 08:14:53 +01:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs share/extensions
|
2017-01-09 10:02:10 +01:00
|
|
|
patchShebangs fix-roff-punct
|
2015-02-22 08:14:53 +01:00
|
|
|
'';
|
2014-07-18 11:54:10 +02:00
|
|
|
|
2016-09-25 22:31:25 +02:00
|
|
|
# Python is used at run-time to execute scripts, e.g., those from
|
|
|
|
# the "Effects" menu.
|
2016-10-18 18:26:54 +02:00
|
|
|
propagatedBuildInputs = [ python2Env ];
|
2008-02-22 17:24:58 +01:00
|
|
|
|
2005-09-07 16:57:30 +02:00
|
|
|
buildInputs = [
|
2016-09-11 23:24:51 +02:00
|
|
|
pkgconfig perl perlXMLParser libXft libpng zlib popt boehmgc
|
|
|
|
libxml2 libxslt glib gtkmm2 glibmm libsigcxx lcms boost gettext
|
2015-02-22 08:14:53 +01:00
|
|
|
makeWrapper intltool gsl poppler imagemagick libwpg librevenge
|
2017-01-09 10:02:10 +01:00
|
|
|
libvisio libcdr libexif automake114x cmake
|
|
|
|
];
|
2008-01-31 11:41:45 +01:00
|
|
|
|
2014-07-18 11:54:10 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2008-02-22 17:24:58 +01:00
|
|
|
postInstall = ''
|
|
|
|
# Make sure PyXML modules can be found at run-time.
|
2015-02-22 08:14:53 +01:00
|
|
|
rm "$out/share/icons/hicolor/icon-theme.cache"
|
2017-04-08 22:43:25 +02:00
|
|
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
install_name_tool -change $out/lib/libinkscape_base.dylib $out/lib/inkscape/libinkscape_base.dylib $out/bin/inkscape
|
|
|
|
install_name_tool -change $out/lib/libinkscape_base.dylib $out/lib/inkscape/libinkscape_base.dylib $out/bin/inkview
|
2008-02-22 17:24:58 +01:00
|
|
|
'';
|
|
|
|
|
2014-07-18 11:54:10 +02:00
|
|
|
meta = with stdenv.lib; {
|
2008-02-22 17:24:58 +01:00
|
|
|
license = "GPL";
|
2008-01-31 11:41:45 +01:00
|
|
|
homepage = http://www.inkscape.org;
|
2014-07-18 11:54:10 +02:00
|
|
|
description = "Vector graphics editor";
|
|
|
|
platforms = platforms.all;
|
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.
|
2009-10-18 06:43:53 +02:00
|
|
|
|
2009-11-26 13:39:22 +01:00
|
|
|
If you want to import .eps files install ps2edit.
|
2009-03-03 14:27:40 +01:00
|
|
|
'';
|
2008-01-31 11:41:45 +01:00
|
|
|
};
|
2005-09-07 16:57:30 +02:00
|
|
|
}
|