1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 qtbase,
7 zlib,
8 freetype,
9 libjpeg,
10 libtiff,
11 libpng,
12}:
13
14stdenv.mkDerivation rec {
15 pname = "pdfhummus";
16 version = "4.7.0";
17
18 src = fetchFromGitHub {
19 owner = "galkahana";
20 repo = "PDF-Writer";
21 rev = "v${version}";
22 hash = "sha256-VSWsqcGdaN1lc+/8VPhBWj4tIDUPQKx3jFYC4Kc0Zwk=";
23 };
24
25 nativeBuildInputs = [
26 cmake
27 ];
28
29 buildInputs = [
30 qtbase
31 ];
32
33 propagatedBuildInputs = [
34 zlib
35 freetype
36 libjpeg
37 libtiff
38 libpng
39 ];
40
41 dontWrapQtApps = true;
42
43 cmakeFlags = [
44 "-DUSE_BUNDLED=OFF"
45 # Use bundled LibAesgm
46 "-DUSE_UNBUNDLED_FALLBACK_BUNDLED=ON"
47 ];
48
49 meta = with lib; {
50 description = "Fast and Free C++ Library for Creating, Parsing an Manipulating PDF Files and Streams";
51 homepage = "https://www.pdfhummus.com";
52 license = licenses.asl20;
53 platforms = platforms.linux;
54 maintainers = with maintainers; [ wineee ];
55 };
56}