2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, poppler, pkg-config, gdk-pixbuf, SDL, gtk2 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "green-pdfviewer";
|
|
|
|
version = "nightly-2014-04-22";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schandinat";
|
|
|
|
repo = "green";
|
|
|
|
rev = "0b516aec17915d9742d8e505d2ed383a3bdcea61";
|
|
|
|
sha256 = "0d0lv33flhgsxhc77kfp2avdz5gvml04r8l1j95yjz2rr096lzlj";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ poppler gdk-pixbuf SDL gtk2 ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./gdk-libs.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
make PREFIX=$out
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/man1
|
|
|
|
make install PREFIX=$out MANDIR=$out/share
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/schandinat/green/";
|
|
|
|
description = "Viewer for PDF files, uses SDL and libpoppler";
|
|
|
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.vrthra ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "green";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|