1{
2 lib,
3 stdenv,
4 fetchzip,
5 autoreconfHook,
6 dos2unix,
7 doxygen,
8 freeimage,
9 libpgf,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "pgf";
14 version = "7.21.7";
15
16 src = fetchzip {
17 url = "mirror://sourceforge/libpgf/libpgf/${version}/pgf-console.zip";
18 hash = "sha256-W9eXYhbynLtvZQsn724Uw0SZ5TuyK2MwREwYKGFhJj0=";
19 };
20
21 postPatch = ''
22 find . -type f | xargs dos2unix
23 mv README.txt README
24 '';
25
26 nativeBuildInputs = [
27 autoreconfHook
28 dos2unix
29 doxygen
30 ];
31
32 buildInputs = [
33 freeimage
34 libpgf
35 ];
36
37 meta = {
38 homepage = "https://www.libpgf.org/";
39 description = "Progressive Graphics Format command line program";
40 license = lib.licenses.lgpl21Plus;
41 platforms = lib.platforms.linux;
42 };
43}