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