fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl, pkgconfig, zlib, freetype, cairo, lua5, texlive, ghostscript
2, libjpeg, qtbase
3, makeQtWrapper
4}:
5
6stdenv.mkDerivation rec {
7 name = "ipe-7.1.10";
8
9 src = fetchurl {
10 url = "https://dl.bintray.com/otfried/generic/ipe/7.1/${name}-src.tar.gz";
11 sha256 = "0kwk8l2jasb4fdixaca08g661d0sdmx2jkk3ch7pxh0f4xkdxkkz";
12 };
13
14 # changes taken from Gentoo portage
15 preConfigure = ''
16 cd src
17 sed -i \
18 -e 's/fpic/fPIC/' \
19 -e 's/moc-qt4/moc/' \
20 config.mak || die
21 sed -i -e 's/install -s/install/' common.mak || die
22 '';
23
24 IPEPREFIX="$$out";
25 URWFONTDIR="${texlive}/texmf-dist/fonts/type1/urw/";
26 LUA_PACKAGE = "lua";
27
28 buildInputs = [
29 libjpeg pkgconfig zlib qtbase freetype cairo lua5 texlive ghostscript
30 ];
31
32 nativeBuildInputs = [ makeQtWrapper ];
33
34 postFixup = ''
35 for prog in $out/bin/*; do
36 wrapQtProgram "$prog" --prefix PATH : "${texlive}/bin"
37 done
38 '';
39
40 #TODO: make .desktop entry
41
42 meta = {
43 description = "An editor for drawing figures";
44 homepage = http://ipe.otfried.org;
45 license = stdenv.lib.licenses.gpl3Plus;
46 longDescription = ''
47 Ipe is an extensible drawing editor for creating figures in PDF and Postscript format.
48 It supports making small figures for inclusion into LaTeX-documents
49 as well as presentations in PDF.
50 '';
51 maintainers = [ stdenv.lib.maintainers.ttuegel ];
52 platforms = stdenv.lib.platforms.linux;
53 };
54}