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

48 lines
1.3 KiB
Nix
Raw Normal View History

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