diff options
Diffstat (limited to 'pkgs/applications/graphics/inkscape/default.nix')
-rw-r--r-- | pkgs/applications/graphics/inkscape/default.nix | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix index 6444537cac2..3e1e482bb39 100644 --- a/pkgs/applications/graphics/inkscape/default.nix +++ b/pkgs/applications/graphics/inkscape/default.nix @@ -4,6 +4,7 @@ , boost , cairo , cmake +, desktopToDarwinBundle , fetchurl , gettext , ghostscript @@ -78,16 +79,15 @@ stdenv.mkDerivation rec { # e.g., those from the "Effects" menu. python3 = "${python3Env}/bin/python"; }) + (substituteAll { + # Fix path to ps2pdf binary + src = ./fix-ps2pdf-path.patch; + inherit ghostscript; + }) ]; postPatch = '' patchShebangs share/extensions - substituteInPlace share/extensions/eps_input.inx \ - --replace "location=\"path\">ps2pdf" "location=\"absolute\">${ghostscript}/bin/ps2pdf" - substituteInPlace share/extensions/ps_input.inx \ - --replace "location=\"path\">ps2pdf" "location=\"absolute\">${ghostscript}/bin/ps2pdf" - substituteInPlace share/extensions/ps_input.py \ - --replace "call('ps2pdf'" "call('${ghostscript}/bin/ps2pdf'" patchShebangs share/templates patchShebangs man/fix-roff-punct @@ -107,7 +107,9 @@ stdenv.mkDerivation rec { ] ++ (with perlPackages; [ perl XMLParser - ]); + ]) ++ lib.optionals stdenv.isDarwin [ + desktopToDarwinBundle + ]; buildInputs = [ boehmgc @@ -157,6 +159,7 @@ stdenv.mkDerivation rec { license = licenses.gpl3Plus; maintainers = [ maintainers.jtojnar ]; platforms = platforms.all; + mainProgram = "inkscape"; longDescription = '' Inkscape is a feature-rich vector graphics editor that edits files in the W3C SVG (Scalable Vector Graphics) file format. |