2017-05-17 19:26:11 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, pkgconfig, zlib, freetype, cairo, lua5, texlive, ghostscript
|
2019-03-10 01:23:34 +00:00
|
|
|
, libjpeg, libpng, qtbase
|
2015-12-12 16:57:38 +00:00
|
|
|
}:
|
|
|
|
|
2013-01-03 15:13:55 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-10-22 06:49:16 +00:00
|
|
|
name = "ipe-7.2.13";
|
2013-01-03 15:13:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-12-01 12:11:20 +00:00
|
|
|
url = "https://dl.bintray.com/otfried/generic/ipe/7.2/${name}-src.tar.gz";
|
2019-10-22 06:49:16 +00:00
|
|
|
sha256 = "1a6a88r7j5z01z6k1z72a8g3n6lxdjjxxkdrzrfdd6df2gbs6g5g";
|
2013-01-03 15:13:55 +00:00
|
|
|
};
|
|
|
|
|
2019-02-04 16:30:04 +00:00
|
|
|
sourceRoot = "${name}/src";
|
2017-02-28 13:38:57 +00:00
|
|
|
|
2019-09-08 23:38:31 +00:00
|
|
|
IPEPREFIX=placeholder "out";
|
2015-12-12 16:57:38 +00:00
|
|
|
URWFONTDIR="${texlive}/texmf-dist/fonts/type1/urw/";
|
2015-08-15 03:30:21 +00:00
|
|
|
LUA_PACKAGE = "lua";
|
2013-01-03 15:13:55 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2019-03-10 01:23:34 +00:00
|
|
|
libjpeg libpng zlib qtbase freetype cairo lua5 texlive ghostscript
|
2013-01-03 15:13:55 +00:00
|
|
|
];
|
|
|
|
|
2017-05-17 19:26:11 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper pkgconfig ];
|
2015-12-12 16:57:38 +00:00
|
|
|
|
|
|
|
postFixup = ''
|
2013-01-03 15:13:55 +00:00
|
|
|
for prog in $out/bin/*; do
|
2017-05-17 19:26:11 +00:00
|
|
|
wrapProgram "$prog" --prefix PATH : "${texlive}/bin"
|
2013-01-03 15:13:55 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2019-02-04 16:30:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-01-03 15:13:55 +00:00
|
|
|
#TODO: make .desktop entry
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An editor for drawing figures";
|
2015-08-15 03:28:23 +00:00
|
|
|
homepage = http://ipe.otfried.org;
|
2014-06-19 04:19:00 +00: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 03:28:42 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ttuegel ];
|
2015-08-15 03:28:51 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2013-01-03 15:13:55 +00:00
|
|
|
};
|
|
|
|
}
|