1{ lib, stdenv, fetchFromGitHub, pkg-config, poppler }:
2
3stdenv.mkDerivation {
4 pname = "leela";
5 version = "12.fe7a35a";
6
7 src = fetchFromGitHub {
8 owner = "TrilbyWhite";
9 repo = "Leela";
10 rev = "576a60185b191d3a3030fef10492fe32d2125563";
11 sha256 = "1k6n758r9dhjmc1pnpk6qzpg0q7pkq2hf18z3b0s2z198jpkg9s3";
12 };
13
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ poppler ];
16
17 installFlags = [ "PREFIX=$(out)" "MANDIR=$(out)/share/man" ];
18
19 meta = {
20 description = "CLI frontend to the poppler-glib libary of PDF tools";
21 homepage = "https://github.com/TrilbyWhite/Leela";
22 license = lib.licenses.gpl3;
23 maintainers = [ lib.maintainers.puffnfresh ];
24 platforms = lib.platforms.linux;
25 };
26}