2016-09-11 14:24:51 -07:00
|
|
|
{ stdenv, fetchurl, fetchpatch, pkgconfig, perl, perlXMLParser, libXft
|
|
|
|
, libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm2
|
2017-08-12 10:33:22 -07:00
|
|
|
, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper
|
2016-10-18 09:26:54 -07:00
|
|
|
, gsl, python2, poppler, imagemagick, libwpg, librevenge
|
2018-04-24 20:38:38 -07:00
|
|
|
, libvisio, libcdr, libexif, potrace, autoreconfHook
|
|
|
|
, intltool
|
|
|
|
, lib
|
2015-02-21 23:14:53 -08:00
|
|
|
}:
|
2005-09-07 07:57:30 -07:00
|
|
|
|
2018-04-24 20:38:38 -07:00
|
|
|
# Note that originally this Nix expression used CMake to build but
|
|
|
|
# this led to errors on MacOS of "Too many arguments". Inkscape
|
|
|
|
# supports autoconf and we will use this for now on.
|
|
|
|
|
2017-03-08 16:26:26 -08:00
|
|
|
let
|
2016-10-18 09:26:54 -07:00
|
|
|
python2Env = python2.withPackages(ps: with ps; [ numpy lxml ]);
|
2015-05-21 06:43:02 -07:00
|
|
|
in
|
|
|
|
|
2008-02-03 05:17:59 -08:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-14 13:02:29 -07:00
|
|
|
name = "inkscape-0.92.3";
|
2005-09-07 07:57:30 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-08-25 06:59:15 -07:00
|
|
|
url = "https://media.inkscape.org/dl/resources/file/${name}.tar.bz2";
|
2018-03-14 13:02:29 -07:00
|
|
|
sha256 = "1chng2yw8dsjxc9gf92aqv7plj11cav8ax321wmakmv5bb09cch6";
|
2005-09-07 07:57:30 -07:00
|
|
|
};
|
|
|
|
|
2015-02-21 23:14:53 -08:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs share/extensions
|
2017-01-09 01:02:10 -08:00
|
|
|
patchShebangs fix-roff-punct
|
2014-07-18 02:54:10 -07:00
|
|
|
|
2017-05-31 21:55:38 -07:00
|
|
|
# Python is used at run-time to execute scripts, e.g., those from
|
|
|
|
# the "Effects" menu.
|
|
|
|
substituteInPlace src/extension/implementation/script.cpp \
|
|
|
|
--replace '"python-interpreter", "python"' '"python-interpreter", "${python2Env}/bin/python"'
|
|
|
|
'';
|
2008-02-22 08:24:58 -08:00
|
|
|
|
2018-04-24 20:38:38 -07:00
|
|
|
nativeBuildInputs = [ pkgconfig autoreconfHook intltool ];
|
2005-09-07 07:57:30 -07:00
|
|
|
buildInputs = [
|
2017-09-14 12:24:37 -07:00
|
|
|
perl perlXMLParser libXft libpng zlib popt boehmgc
|
2016-09-11 14:24:51 -07:00
|
|
|
libxml2 libxslt glib gtkmm2 glibmm libsigcxx lcms boost gettext
|
2017-08-12 10:33:22 -07:00
|
|
|
makeWrapper gsl poppler imagemagick libwpg librevenge
|
2018-05-28 12:10:23 -07:00
|
|
|
libvisio libcdr libexif potrace python2Env
|
2017-01-09 01:02:10 -08:00
|
|
|
];
|
2008-01-31 02:41:45 -08:00
|
|
|
|
2018-05-28 12:10:08 -07:00
|
|
|
enableParallelBuilding = true;
|
2014-07-18 02:54:10 -07:00
|
|
|
|
2018-04-24 20:38:38 -07:00
|
|
|
preConfigure = ''
|
|
|
|
intltoolize -f
|
|
|
|
'';
|
|
|
|
|
2008-02-22 08:24:58 -08:00
|
|
|
postInstall = ''
|
|
|
|
# Make sure PyXML modules can be found at run-time.
|
2015-02-21 23:14:53 -08:00
|
|
|
rm "$out/share/icons/hicolor/icon-theme.cache"
|
2008-02-22 08:24:58 -08:00
|
|
|
'';
|
|
|
|
|
2018-05-29 06:36:19 -07:00
|
|
|
# 0.92.3 complains about an invalid conversion from const char * to char *
|
|
|
|
NIX_CFLAGS_COMPILE = " -fpermissive ";
|
|
|
|
|
2018-04-24 20:38:38 -07:00
|
|
|
meta = with lib; {
|
2008-02-22 08:24:58 -08:00
|
|
|
license = "GPL";
|
2017-08-25 06:59:15 -07:00
|
|
|
homepage = https://www.inkscape.org;
|
2014-07-18 02:54:10 -07:00
|
|
|
description = "Vector graphics editor";
|
|
|
|
platforms = platforms.all;
|
2009-03-03 05:27:40 -08:00
|
|
|
longDescription = ''
|
|
|
|
Inkscape is a feature-rich vector graphics editor that edits
|
|
|
|
files in the W3C SVG (Scalable Vector Graphics) file format.
|
2009-10-17 21:43:53 -07:00
|
|
|
|
2009-11-26 04:39:22 -08:00
|
|
|
If you want to import .eps files install ps2edit.
|
2009-03-03 05:27:40 -08:00
|
|
|
'';
|
2018-05-28 12:10:25 -07:00
|
|
|
maintainers = with maintainters; [ matthewbauer ];
|
2008-01-31 02:41:45 -08:00
|
|
|
};
|
2005-09-07 07:57:30 -07:00
|
|
|
}
|