-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,9 +2,15 @@ | |
, 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 | ||
, libvisio, libcdr, libexif, potrace, autoreconfHook | ||
, intltool | ||
, lib | ||
}: | ||
|
||
# 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. | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
aszlig
Member
|
||
|
||
let | ||
python2Env = python2.withPackages(ps: with ps; [ numpy lxml ]); | ||
in | ||
|
@@ -17,12 +23,6 @@ stdenv.mkDerivation rec { | |
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 | ||
|
@@ -33,25 +33,26 @@ stdenv.mkDerivation rec { | |
--replace '"python-interpreter", "python"' '"python-interpreter", "${python2Env}/bin/python"' | ||
''; | ||
|
||
nativeBuildInputs = [ pkgconfig ]; | ||
nativeBuildInputs = [ pkgconfig autoreconfHook intltool ]; | ||
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 | ||
libvisio libcdr libexif potrace python2Env | ||
]; | ||
|
||
enableParallelBuilding = true; | ||
|
||
preConfigure = '' | ||
intltoolize -f | ||
''; | ||
|
||
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; { | ||
meta = with lib; { | ||
license = "GPL"; | ||
homepage = https://www.inkscape.org; | ||
description = "Vector graphics editor"; | ||
|
@@ -62,5 +63,6 @@ stdenv.mkDerivation rec { | |
If you want to import .eps files install ps2edit. | ||
''; | ||
maintainers = with maintainters; [ matthewbauer ]; | ||
}; | ||
} |
I don't think it's a good idea to switch back to autoconf, because the upstream repository uses CMake (and I think Meson soon) and only generates autotools files in their tarball. Besides of that, now the build fails to link GNU/Linux and thus NixOS as well. Another problem with the generated autotools files is that it also randomly fails with parallel building. For example building with 48 cores I get to the linking phase in about 1 of 10 builds.
The linking error: