@ -17,6 +17,12 @@ stdenv.mkDerivation rec {
sha256 = " 1 c h n g 2 y w 8 d s j x c 9 g f 9 2 a q v 7 p l j 1 1 c a v 8 a x 3 2 1 w m a k m v 5 b b 0 9 c c h 6 " ;
} ;
# Inkscape hits the ARGMAX when linking on macOS. It appears to be
# CMake’s ARGMAX check doesn’t offer enough padding for NIX_LDFLAGS.
# Setting strictDeps it avoids duplicating some dependencies so it
# will leave us under ARGMAX.
strictDeps = true ;
unpackPhase = ''
cp $ src $ { name } . tar . bz2
tar xvjf $ { name } . tar . bz2 > /dev/null
@ -33,19 +39,19 @@ stdenv.mkDerivation rec {
- - replace ' " p y t h o n - i n t e r p r e t e r " , " p y t h o n " ' ' " p y t h o n - i n t e r p r e t e r " , " ${ python2Env } / b i n / p y t h o n " '
'' ;
nativeBuildInputs = [ pkgconfig ] ;
nativeBuildInputs = [ pkgconfig cmake makeWrapper python2Env ] ;
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
gsl poppler imagemagick libwpg librevenge
libvisio libcdr libexif potrace
] ;
enableParallelBuilding = true ;
postInstall = ''
# Make sure PyXML modules can be found at run-time.
rm "$ o u t / s h a r e / i c o n s / h i c o l o r / i c o n - t h e m e . c a c h e "
rm - f "$ o u t / s h a r e / i c o n s / h i c o l o r / i c o n - t h e m e . c a c h e "
'' + s t d e n v . l i b . o p t i o n a l S t r i n g s t d e n v . i s D a r w i n ''
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