about summary refs log tree commit diff
path: root/pkgs/tools/graphics/pgf/default.nix
blob: e63875c19cd31b84e1bd3d9ec1743c1ef105af15 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ lib
, stdenv
, fetchzip
, autoreconfHook
, dos2unix
, doxygen
, freeimage
, libpgf
}:

stdenv.mkDerivation rec {
  pname = "pgf";
  version = "7.21.7";

  src = fetchzip {
    url = "mirror://sourceforge/libpgf/libpgf/${version}/pgf-console.zip";
    hash = "sha256-W9eXYhbynLtvZQsn724Uw0SZ5TuyK2MwREwYKGFhJj0=";
  };

  postPatch = ''
    find . -type f | xargs dos2unix
    mv README.txt README
  '';

  nativeBuildInputs = [
    autoreconfHook
    dos2unix
    doxygen
  ];

  buildInputs = [
    freeimage
    libpgf
  ];

  meta = {
    homepage = "https://www.libpgf.org/";
    description = "Progressive Graphics Format command line program";
    license = lib.licenses.lgpl21Plus;
    platforms = lib.platforms.linux;
  };
}