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

52 lines
1.4 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, zlib, qt4, freetype, cairo, lua5, texLive, ghostscriptX
2015-08-15 04:30:48 +01:00
, libjpeg
, makeWrapper }:
let ghostscript = ghostscriptX; in
stdenv.mkDerivation rec {
2015-08-15 04:29:58 +01:00
name = "ipe-7.1.8";
src = fetchurl {
2015-08-15 04:29:58 +01:00
url = "http://github.com/otfried/ipe/raw/master/releases/7.1/${name}-src.tar.gz";
sha256 = "1zx6dyr1rb6m6rvawagg9f8bc2li9nbighv2dglzjbh11bxqsyva";
};
# changes taken from Gentoo portage
preConfigure = ''
cd src
sed -i \
-e 's/fpic/fPIC/' \
-e 's/moc-qt4/moc/' \
config.mak || die
sed -i -e 's/install -s/install/' common.mak || die
'';
IPEPREFIX="$$out";
URWFONTDIR="${texLive}/texmf-dist/fonts/type1/urw/";
2015-08-15 04:30:21 +01:00
LUA_PACKAGE = "lua";
buildInputs = [
2015-08-15 04:30:48 +01:00
libjpeg pkgconfig zlib qt4 freetype cairo lua5 texLive ghostscript makeWrapper
];
postInstall = ''
for prog in $out/bin/*; do
wrapProgram "$prog" --prefix PATH : "${texLive}/bin"
done
'';
#TODO: make .desktop entry
meta = {
description = "An editor for drawing figures";
2015-08-15 04:28:23 +01: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 04:28:42 +01:00
maintainers = [ stdenv.lib.maintainers.ttuegel ];
2015-08-15 04:28:51 +01:00
platforms = stdenv.lib.platforms.linux;
};
}