mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
inkscape: 0.92.5 -> 1.0
This commit is contained in:
parent
7eb4a0ae27
commit
5107b24c83
@ -3,14 +3,18 @@
|
|||||||
, boost
|
, boost
|
||||||
, cairo
|
, cairo
|
||||||
, cmake
|
, cmake
|
||||||
, fetchpatch
|
, double-conversion
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, gettext
|
, gettext
|
||||||
|
, gdl
|
||||||
, glib
|
, glib
|
||||||
|
, glib-networking
|
||||||
, glibmm
|
, glibmm
|
||||||
, gsl
|
, gsl
|
||||||
, gtkmm2
|
, gtk-mac-integration
|
||||||
, gtkspell2
|
, gtkmm3
|
||||||
|
, gtkspell3
|
||||||
|
, gdk-pixbuf
|
||||||
, imagemagick
|
, imagemagick
|
||||||
, lcms
|
, lcms
|
||||||
, libcdr
|
, libcdr
|
||||||
@ -19,18 +23,20 @@
|
|||||||
, librevenge
|
, librevenge
|
||||||
, librsvg
|
, librsvg
|
||||||
, libsigcxx
|
, libsigcxx
|
||||||
|
, libsoup
|
||||||
, libvisio
|
, libvisio
|
||||||
, libwpg
|
, libwpg
|
||||||
, libXft
|
, libXft
|
||||||
, libxml2
|
, libxml2
|
||||||
, libxslt
|
, libxslt
|
||||||
, makeWrapper
|
, ninja
|
||||||
, perlPackages
|
, perlPackages
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, poppler
|
, poppler
|
||||||
, popt
|
, popt
|
||||||
, potrace
|
, potrace
|
||||||
, python3
|
, python3
|
||||||
|
, substituteAll
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
, zlib
|
, zlib
|
||||||
}:
|
}:
|
||||||
@ -44,11 +50,11 @@ let
|
|||||||
in
|
in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "inkscape";
|
pname = "inkscape";
|
||||||
version = "0.92.5";
|
version = "1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://media.inkscape.org/dl/resources/file/${pname}-${version}.tar.bz2";
|
url = "https://media.inkscape.org/dl/resources/file/${pname}-${version}.tar.xz";
|
||||||
sha256 = "02wsa66ifycibmgfsrhmhqdv41brg955lffq8drsjr5xw9lpzvl1";
|
sha256 = "1fwl7yjkykqb86555k4fm24inhc40mrvxqwgl2v2vi9alv8j7hc9";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Inkscape hits the ARGMAX when linking on macOS. It appears to be
|
# Inkscape hits the ARGMAX when linking on macOS. It appears to be
|
||||||
@ -57,21 +63,28 @@ stdenv.mkDerivation rec {
|
|||||||
# will leave us under ARGMAX.
|
# will leave us under ARGMAX.
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(substituteAll {
|
||||||
|
src = ./fix-python-paths.patch;
|
||||||
|
# Python is used at run-time to execute scripts,
|
||||||
|
# e.g., those from the "Effects" menu.
|
||||||
|
python3 = "${python3Env}/bin/python";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
patchShebangs share/extensions
|
patchShebangs share/extensions
|
||||||
patchShebangs fix-roff-punct
|
patchShebangs share/templates
|
||||||
|
patchShebangs man/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", "${python3Env}/bin/python"'
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
pkg-config
|
pkg-config
|
||||||
cmake
|
cmake
|
||||||
makeWrapper
|
ninja
|
||||||
python3Env
|
python3Env
|
||||||
|
glib # for setup hook
|
||||||
|
gdk-pixbuf # for setup hook
|
||||||
wrapGAppsHook
|
wrapGAppsHook
|
||||||
] ++ (with perlPackages; [
|
] ++ (with perlPackages; [
|
||||||
perl
|
perl
|
||||||
@ -81,11 +94,14 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
boehmgc
|
boehmgc
|
||||||
boost
|
boost
|
||||||
|
double-conversion
|
||||||
|
gdl
|
||||||
gettext
|
gettext
|
||||||
glib
|
glib
|
||||||
|
glib-networking
|
||||||
glibmm
|
glibmm
|
||||||
gsl
|
gsl
|
||||||
gtkmm2
|
gtkmm3
|
||||||
imagemagick
|
imagemagick
|
||||||
lcms
|
lcms
|
||||||
libcdr
|
libcdr
|
||||||
@ -94,6 +110,7 @@ stdenv.mkDerivation rec {
|
|||||||
librevenge
|
librevenge
|
||||||
librsvg # for loading icons
|
librsvg # for loading icons
|
||||||
libsigcxx
|
libsigcxx
|
||||||
|
libsoup
|
||||||
libvisio
|
libvisio
|
||||||
libwpg
|
libwpg
|
||||||
libXft
|
libXft
|
||||||
@ -106,9 +123,10 @@ stdenv.mkDerivation rec {
|
|||||||
python3Env
|
python3Env
|
||||||
zlib
|
zlib
|
||||||
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [
|
] ++ stdenv.lib.optionals (!stdenv.isDarwin) [
|
||||||
gtkspell2
|
gtkspell3
|
||||||
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
] ++ stdenv.lib.optionals stdenv.isDarwin [
|
||||||
cairo
|
cairo
|
||||||
|
gtk-mac-integration
|
||||||
];
|
];
|
||||||
|
|
||||||
# Make sure PyXML modules can be found at run-time.
|
# Make sure PyXML modules can be found at run-time.
|
||||||
|
15
pkgs/applications/graphics/inkscape/fix-python-paths.patch
Normal file
15
pkgs/applications/graphics/inkscape/fix-python-paths.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
--- a/src/extension/implementation/script.cpp
|
||||||
|
+++ b/src/extension/implementation/script.cpp
|
||||||
|
@@ -77,10 +77,10 @@ const std::map<std::string, Script::inte
|
||||||
|
{ "python", {"python-interpreter", {"pythonw" }}},
|
||||||
|
#elif defined __APPLE__
|
||||||
|
{ "perl", {"perl-interpreter", {"perl" }}},
|
||||||
|
- { "python", {"python-interpreter", {"python3" }}},
|
||||||
|
+ { "python", {"python-interpreter", {"@python3@" }}},
|
||||||
|
#else
|
||||||
|
{ "perl", {"perl-interpreter", {"perl" }}},
|
||||||
|
- { "python", {"python-interpreter", {"python3", "python" }}},
|
||||||
|
+ { "python", {"python-interpreter", {"@python3@" }}},
|
||||||
|
#endif
|
||||||
|
{ "python2", {"python2-interpreter", {"python2", "python" }}},
|
||||||
|
{ "ruby", {"ruby-interpreter", {"ruby" }}},
|
Loading…
Reference in New Issue
Block a user