2015-12-12 16:57:38 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, zlib, freetype, cairo, lua5, texlive, ghostscript
|
2015-12-07 11:50:02 +00:00
|
|
|
, libjpeg, qtbase
|
2015-12-12 16:57:38 +00:00
|
|
|
, makeQtWrapper
|
|
|
|
}:
|
|
|
|
|
2013-01-03 15:13:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2015-12-07 11:50:02 +00:00
|
|
|
name = "ipe-7.1.10";
|
2013-01-03 15:13:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-12-07 11:50:02 +00:00
|
|
|
url = "https://dl.bintray.com/otfried/generic/ipe/7.1/${name}-src.tar.gz";
|
|
|
|
sha256 = "0kwk8l2jasb4fdixaca08g661d0sdmx2jkk3ch7pxh0f4xkdxkkz";
|
2013-01-03 15:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# changes taken from Gentoo portage
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
sed -i \
|
|
|
|
-e 's/fpic/fPIC/' \
|
|
|
|
-e 's/moc-qt4/moc/' \
|
|
|
|
config.mak || die
|
|
|
|
sed -i -e 's/install -s/install/' common.mak || die
|
|
|
|
'';
|
|
|
|
|
2017-02-28 13:38:57 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-std=c++11" ]; # build with Qt 5.7
|
|
|
|
|
2013-01-03 15:13:55 +00:00
|
|
|
IPEPREFIX="$$out";
|
2015-12-12 16:57:38 +00:00
|
|
|
URWFONTDIR="${texlive}/texmf-dist/fonts/type1/urw/";
|
2015-08-15 04:30:21 +01:00
|
|
|
LUA_PACKAGE = "lua";
|
2013-01-03 15:13:55 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2015-12-12 16:57:38 +00:00
|
|
|
libjpeg pkgconfig zlib qtbase freetype cairo lua5 texlive ghostscript
|
2013-01-03 15:13:55 +00:00
|
|
|
];
|
|
|
|
|
2015-12-12 16:57:38 +00:00
|
|
|
nativeBuildInputs = [ makeQtWrapper ];
|
|
|
|
|
|
|
|
postFixup = ''
|
2013-01-03 15:13:55 +00:00
|
|
|
for prog in $out/bin/*; do
|
2015-12-12 16:57:38 +00:00
|
|
|
wrapQtProgram "$prog" --prefix PATH : "${texlive}/bin"
|
2013-01-03 15:13:55 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
#TODO: make .desktop entry
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An editor for drawing figures";
|
2015-08-15 04:28:23 +01:00
|
|
|
homepage = http://ipe.otfried.org;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2013-01-03 15:13:55 +00:00
|
|
|
longDescription = ''
|
|
|
|
Ipe is an extensible drawing editor for creating figures in PDF and Postscript format.
|
|
|
|
It supports making small figures for inclusion into LaTeX-documents
|
|
|
|
as well as presentations in PDF.
|
|
|
|
'';
|
2015-08-15 04:28:42 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ttuegel ];
|
2015-08-15 04:28:51 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-01-03 15:13:55 +00:00
|
|
|
};
|
|
|
|
}
|