nixpkgs/pkgs/applications/graphics/ipe/default.nix

44 lines
1.2 KiB
Nix
Raw Normal View History

2017-05-17 20:26:11 +01:00
{ stdenv, fetchurl, makeWrapper, pkgconfig, zlib, freetype, cairo, lua5, texlive, ghostscript
, libjpeg, libpng, qtbase, mkDerivation
2015-12-12 16:57:38 +00:00
}:
mkDerivation rec {
name = "ipe-7.2.13";
src = fetchurl {
2017-12-01 12:11:20 +00:00
url = "https://dl.bintray.com/otfried/generic/ipe/7.2/${name}-src.tar.gz";
sha256 = "1a6a88r7j5z01z6k1z72a8g3n6lxdjjxxkdrzrfdd6df2gbs6g5g";
};
sourceRoot = "${name}/src";
2017-02-28 13:38:57 +00:00
2019-09-09 00:38:31 +01:00
IPEPREFIX=placeholder "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";
buildInputs = [
libjpeg libpng zlib qtbase freetype cairo lua5 texlive ghostscript
];
nativeBuildInputs = [ pkgconfig ];
2015-12-12 16:57:38 +00:00
qtWrapperArgs = [ ''--prefix PATH : ${texlive}/bin'' ];
enableParallelBuilding = true;
#TODO: make .desktop entry
meta = {
description = "An editor for drawing figures";
homepage = "http://ipe.otfried.org";
license = stdenv.lib.licenses.gpl3Plus;
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;
};
}