lol
at v192 39 lines 1.1 kB view raw
1{stdenv, fetchurl, qt4, pkgconfig, poppler_qt4, djvulibre, libspectre, cups 2, file, ghostscript 3}: 4let 5 s = # Generated upstream information 6 rec { 7 baseName="qpdfview"; 8 version = "0.4.15"; 9 name="${baseName}-${version}"; 10 url="https://launchpad.net/qpdfview/trunk/${version}/+download/qpdfview-${version}.tar.gz"; 11 sha256 = "0wgj02zpbyq4m2ix8rljiz312l2xk81gpy030vy424icq4xsip52"; 12 }; 13 buildInputs = [ 14 qt4 poppler_qt4 pkgconfig djvulibre libspectre cups file ghostscript 15 ]; 16in 17stdenv.mkDerivation { 18 inherit (s) name version; 19 inherit buildInputs; 20 src = fetchurl { 21 inherit (s) url sha256; 22 }; 23 configurePhase = '' 24 qmake *.pro 25 for i in *.pro; do 26 qmake "$i" -o "Makefile.$(basename "$i" .pro)" 27 done 28 sed -e "s@/usr/@$out/@g" -i Makefile* 29 ''; 30 meta = { 31 inherit (s) version; 32 description = "A tabbed document viewer"; 33 license = stdenv.lib.licenses.gpl2; 34 maintainers = [stdenv.lib.maintainers.raskin]; 35 platforms = stdenv.lib.platforms.linux; 36 homepage = "https://launchpad.net/qpdfview"; 37 updateWalker = true; 38 }; 39}