about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libpgf/default.nix
blob: c0d24cb3cdf591f8fc4df7d5672379463c3eddf5 (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
{ lib
, stdenv
, fetchzip
, autoreconfHook
, dos2unix
}:

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

  src = fetchzip {
    url = "mirror://sourceforge/${pname}/${pname}/${version}/${pname}.zip";
    hash = "sha256-TAWIuikijfyeTRetZWoMMdB/FeGAR7ZjNssVxUevlVg=";
  };

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

  nativeBuildInputs = [
    autoreconfHook
    dos2unix
  ];

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