lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at v192 51 lines 1.5 kB view raw
1{ stdenv, fetchurl, pkgconfig, zlib, qt4, freetype, cairo, lua5, texLive, ghostscriptX 2, libjpeg 3, makeWrapper }: 4let ghostscript = ghostscriptX; in 5stdenv.mkDerivation rec { 6 name = "ipe-7.1.8"; 7 8 src = fetchurl { 9 url = "http://github.com/otfried/ipe/raw/master/releases/7.1/${name}-src.tar.gz"; 10 sha256 = "1zx6dyr1rb6m6rvawagg9f8bc2li9nbighv2dglzjbh11bxqsyva"; 11 }; 12 13 # changes taken from Gentoo portage 14 preConfigure = '' 15 cd src 16 sed -i \ 17 -e 's/fpic/fPIC/' \ 18 -e 's/moc-qt4/moc/' \ 19 config.mak || die 20 sed -i -e 's/install -s/install/' common.mak || die 21 ''; 22 23 IPEPREFIX="$$out"; 24 URWFONTDIR="${texLive}/texmf-dist/fonts/type1/urw/"; 25 LUA_PACKAGE = "lua"; 26 27 buildInputs = [ 28 libjpeg pkgconfig zlib qt4 freetype cairo lua5 texLive ghostscript makeWrapper 29 ]; 30 31 postInstall = '' 32 for prog in $out/bin/*; do 33 wrapProgram "$prog" --prefix PATH : "${texLive}/bin" 34 done 35 ''; 36 37 #TODO: make .desktop entry 38 39 meta = { 40 description = "An editor for drawing figures"; 41 homepage = http://ipe.otfried.org; 42 license = stdenv.lib.licenses.gpl3Plus; 43 longDescription = '' 44 Ipe is an extensible drawing editor for creating figures in PDF and Postscript format. 45 It supports making small figures for inclusion into LaTeX-documents 46 as well as presentations in PDF. 47 ''; 48 maintainers = [ stdenv.lib.maintainers.ttuegel ]; 49 platforms = stdenv.lib.platforms.linux; 50 }; 51}