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