1 { lib, stdenv, fetchFromGitHub, poppler, pkg-config, gdk-pixbuf, SDL, gtk2 }:
4 pname = "green-pdfviewer";
5 version = "nightly-2014-04-22";
7 src = fetchFromGitHub {
10 rev = "0b516aec17915d9742d8e505d2ed383a3bdcea61";
11 sha256 = "0d0lv33flhgsxhc77kfp2avdz5gvml04r8l1j95yjz2rr096lzlj";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ poppler gdk-pixbuf SDL gtk2 ];
26 mkdir -p $out/bin $out/share/man1
27 make install PREFIX=$out MANDIR=$out/share
31 homepage = "https://github.com/schandinat/green/";
32 description = "Viewer for PDF files, uses SDL and libpoppler";
34 platforms = platforms.unix;
35 license = licenses.gpl3;
37 mainProgram = "green";