ipe: 7.2.24 -> 7.2.26
This also introduces a new option to make TeX Live optional. Ipe tries to find LaTeX executables in PATH and some users might prefer to use their existing TeX Live installation.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
{ lib
|
||||
, mkDerivation
|
||||
, stdenv
|
||||
, makeDesktopItem
|
||||
, fetchurl
|
||||
, pkg-config
|
||||
@@ -14,21 +14,24 @@
|
||||
, lua5
|
||||
, qtbase
|
||||
, texlive
|
||||
, wrapQtAppsHook
|
||||
, zlib
|
||||
, withTeXLive ? true
|
||||
}:
|
||||
|
||||
mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ipe";
|
||||
version = "7.2.24";
|
||||
version = "7.2.26";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/otfried/ipe/releases/download/v${version}/ipe-${version}-src.tar.gz";
|
||||
sha256 = "sha256-/rh58k0dziWRB5B3BEbVCwPkbuLr19KBV7FwWXFkT28=";
|
||||
sha256 = "sha256-5J0AV5E6SlFrIBfwDZrbJnkDUoVZ0fDH669s2RQ1CqU=";
|
||||
};
|
||||
patches = [
|
||||
./headers-lookup.patch
|
||||
];
|
||||
|
||||
sourceRoot = "${pname}-${version}/src";
|
||||
|
||||
nativeBuildInputs = [ pkg-config copyDesktopItems ];
|
||||
nativeBuildInputs = [ pkg-config copyDesktopItems wrapQtAppsHook ];
|
||||
|
||||
buildInputs = [
|
||||
cairo
|
||||
@@ -40,15 +43,19 @@ mkDerivation rec {
|
||||
libspiro
|
||||
lua5
|
||||
qtbase
|
||||
texlive
|
||||
zlib
|
||||
] ++ (lib.optionals withTeXLive [
|
||||
texlive
|
||||
]);
|
||||
|
||||
makeFlags = [
|
||||
"-C src"
|
||||
"IPEPREFIX=${placeholder "out"}"
|
||||
"LUA_PACKAGE=lua"
|
||||
"IPE_NO_SPELLCHECK=1" # qtSpell is not yet packaged
|
||||
];
|
||||
|
||||
IPEPREFIX = placeholder "out";
|
||||
URWFONTDIR = "${texlive}/texmf-dist/fonts/type1/urw/";
|
||||
LUA_PACKAGE = "lua";
|
||||
|
||||
qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ texlive ]}" ];
|
||||
qtWrapperArgs = lib.optional withTeXLive [ "--prefix PATH : ${lib.makeBinPath [ texlive ]}" ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/ipepresenter/Makefile b/src/ipepresenter/Makefile
|
||||
index ae3664e..f4f74ff 100644
|
||||
--- a/src/ipepresenter/Makefile
|
||||
+++ b/src/ipepresenter/Makefile
|
||||
@@ -8,7 +8,7 @@ include ../common.mak
|
||||
|
||||
TARGET = $(call exe_target,ipepresenter)
|
||||
|
||||
-CXXFLAGS += -I../include -I../ipecanvas -I../ipecairo \
|
||||
+CPPFLAGS += -I../include -I../ipecanvas -I../ipecairo \
|
||||
$(UI_CFLAGS) $(CAIRO_CFLAGS) $(ZLIB_CFLAGS)
|
||||
LIBS += -L$(buildlib) -lipecanvas -lipecairo -lipe \
|
||||
$(UI_LIBS) $(CAIRO_LIBS) $(ZLIB_LIBS)
|
||||
Reference in New Issue
Block a user