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

55 lines
1.4 KiB
Nix
Raw Normal View History

2015-12-12 17:57:38 +01:00
{ stdenv, fetchurl, pkgconfig, zlib, freetype, cairo, lua5, texlive, ghostscript
2015-12-07 12:50:02 +01:00
, libjpeg, qtbase
2015-12-12 17:57:38 +01:00
, makeQtWrapper
}:
stdenv.mkDerivation rec {
2015-12-07 12:50:02 +01:00
name = "ipe-7.1.10";
src = fetchurl {
2015-12-07 12:50:02 +01:00
url = "https://dl.bintray.com/otfried/generic/ipe/7.1/${name}-src.tar.gz";
sha256 = "0kwk8l2jasb4fdixaca08g661d0sdmx2jkk3ch7pxh0f4xkdxkkz";
};
# 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";
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 = [
2015-12-12 17:57:38 +01:00
libjpeg pkgconfig zlib qtbase freetype cairo lua5 texlive ghostscript
];
2015-12-12 17:57:38 +01:00
nativeBuildInputs = [ makeQtWrapper ];
postFixup = ''
for prog in $out/bin/*; do
2015-12-12 17:57:38 +01:00
wrapQtProgram "$prog" --prefix PATH : "${texlive}/bin"
done
'';
#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;
};
}