1317428ca0
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done: - built on NixOS - ran `/nix/store/5khy2kbfjwvkj42lr6z0cvnd17xkfrfg-inkscape-0.92.3/bin/inkscape -h` got 0 exit code - ran `/nix/store/5khy2kbfjwvkj42lr6z0cvnd17xkfrfg-inkscape-0.92.3/bin/inkscape --help` got 0 exit code - ran `/nix/store/5khy2kbfjwvkj42lr6z0cvnd17xkfrfg-inkscape-0.92.3/bin/inkscape -V` and found version 0.92.3 - ran `/nix/store/5khy2kbfjwvkj42lr6z0cvnd17xkfrfg-inkscape-0.92.3/bin/inkscape --version` and found version 0.92.3 - found 0.92.3 with grep in /nix/store/5khy2kbfjwvkj42lr6z0cvnd17xkfrfg-inkscape-0.92.3
67 lines
2.2 KiB
Nix
67 lines
2.2 KiB
Nix
{ stdenv, fetchurl, fetchpatch, pkgconfig, perl, perlXMLParser, libXft
|
|
, libpng, zlib, popt, boehmgc, libxml2, libxslt, glib, gtkmm2
|
|
, glibmm, libsigcxx, lcms, boost, gettext, makeWrapper
|
|
, gsl, python2, poppler, imagemagick, libwpg, librevenge
|
|
, libvisio, libcdr, libexif, potrace, cmake
|
|
}:
|
|
|
|
let
|
|
python2Env = python2.withPackages(ps: with ps; [ numpy lxml ]);
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "inkscape-0.92.3";
|
|
|
|
src = fetchurl {
|
|
url = "https://media.inkscape.org/dl/resources/file/${name}.tar.bz2";
|
|
sha256 = "1chng2yw8dsjxc9gf92aqv7plj11cav8ax321wmakmv5bb09cch6";
|
|
};
|
|
|
|
unpackPhase = ''
|
|
cp $src ${name}.tar.bz2
|
|
tar xvjf ${name}.tar.bz2 > /dev/null
|
|
cd ${name}
|
|
'';
|
|
|
|
postPatch = ''
|
|
patchShebangs share/extensions
|
|
patchShebangs fix-roff-punct
|
|
|
|
# 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"'
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
perl perlXMLParser libXft libpng zlib popt boehmgc
|
|
libxml2 libxslt glib gtkmm2 glibmm libsigcxx lcms boost gettext
|
|
makeWrapper gsl poppler imagemagick libwpg librevenge
|
|
libvisio libcdr libexif potrace cmake python2Env
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
# Make sure PyXML modules can be found at run-time.
|
|
rm "$out/share/icons/hicolor/icon-theme.cache"
|
|
'' + 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
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
license = "GPL";
|
|
homepage = https://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.
|
|
'';
|
|
};
|
|
}
|