2021-02-07 18:58:32 +00:00
|
|
|
{ lib
|
|
|
|
, mkDerivation
|
|
|
|
, fetchurl
|
|
|
|
, pkg-config
|
|
|
|
, cairo
|
|
|
|
, freetype
|
|
|
|
, ghostscript
|
|
|
|
, gsl
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libspiro
|
|
|
|
, lua5
|
|
|
|
, qtbase
|
|
|
|
, texlive
|
|
|
|
, zlib
|
2015-12-12 16:57:38 +00:00
|
|
|
}:
|
|
|
|
|
2020-04-16 19:21:46 +01:00
|
|
|
mkDerivation rec {
|
2021-02-07 18:58:32 +00:00
|
|
|
pname = "ipe";
|
|
|
|
version = "7.2.23";
|
2013-01-03 15:13:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-07 18:58:32 +00:00
|
|
|
url = "https://dl.bintray.com/otfried/generic/ipe/7.2/${pname}-${version}-src.tar.gz";
|
|
|
|
sha256 = "0yvm3zfba1ljyy518vjnvwpyg7lgnmdwm19v5k0wfgz64aca56x1";
|
2013-01-03 15:13:55 +00:00
|
|
|
};
|
|
|
|
|
2021-02-07 18:58:32 +00:00
|
|
|
sourceRoot = "${pname}-${version}/src";
|
2017-02-28 13:38:57 +00:00
|
|
|
|
2021-02-07 18:58:32 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2013-01-03 15:13:55 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2021-02-07 18:58:32 +00:00
|
|
|
cairo
|
|
|
|
freetype
|
|
|
|
ghostscript
|
|
|
|
gsl
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
libspiro
|
|
|
|
lua5
|
|
|
|
qtbase
|
|
|
|
texlive
|
|
|
|
zlib
|
2013-01-03 15:13:55 +00:00
|
|
|
];
|
|
|
|
|
2021-02-07 18:58:32 +00:00
|
|
|
IPEPREFIX=placeholder "out";
|
|
|
|
URWFONTDIR="${texlive}/texmf-dist/fonts/type1/urw/";
|
|
|
|
LUA_PACKAGE = "lua";
|
2015-12-12 16:57:38 +00:00
|
|
|
|
2021-01-24 09:19:10 +00:00
|
|
|
qtWrapperArgs = [ "--prefix PATH : ${texlive}/bin" ];
|
2013-01-03 15:13:55 +00:00
|
|
|
|
2019-02-04 16:30:04 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-07 18:58:32 +00:00
|
|
|
# TODO: make .desktop entry
|
2013-01-03 15:13:55 +00:00
|
|
|
|
2021-02-07 18:58:32 +00:00
|
|
|
meta = with lib; {
|
2013-01-03 15:13:55 +00:00
|
|
|
description = "An editor for drawing figures";
|
2021-02-07 18:58:32 +00:00
|
|
|
homepage = "http://ipe.otfried.org"; # https not available
|
|
|
|
license = 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.
|
|
|
|
'';
|
2021-02-07 18:58:32 +00:00
|
|
|
maintainers = with maintainers; [ ttuegel ];
|
|
|
|
platforms = platforms.linux;
|
2013-01-03 15:13:55 +00:00
|
|
|
};
|
|
|
|
}
|