2019-05-22 11:03:39 +00:00
|
|
|
{ stdenv, fetchFromGitHub, poppler, pkgconfig, gdk-pixbuf, SDL, gtk2 }:
|
2016-06-13 01:27:02 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "green-pdfviewer";
|
2016-06-13 01:27:02 +00:00
|
|
|
version = "nightly-2014-04-22";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schandinat";
|
|
|
|
repo = "green";
|
|
|
|
rev = "0b516aec17915d9742d8e505d2ed383a3bdcea61";
|
|
|
|
sha256 = "0d0lv33flhgsxhc77kfp2avdz5gvml04r8l1j95yjz2rr096lzlj";
|
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2019-05-22 11:03:39 +00:00
|
|
|
buildInputs = [ poppler gdk-pixbuf SDL gtk2 ];
|
2016-06-13 01:27:02 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./gdk-libs.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make PREFIX=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/man1
|
|
|
|
make install PREFIX=$out MANDIR=$out/share
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/schandinat/green/";
|
2016-06-13 01:27:02 +00:00
|
|
|
description = "Viewer for PDF files, uses SDL and libpoppler";
|
|
|
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.vrthra ];
|
|
|
|
};
|
|
|
|
}
|