2023-02-16 17:41:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchzip
|
|
|
|
, autoreconfHook
|
|
|
|
, dos2unix
|
|
|
|
, doxygen
|
|
|
|
, freeimage
|
|
|
|
, libpgf
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-17 21:14:59 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pgf";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "7.21.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/libpgf/libpgf/${version}/pgf-console.zip";
|
|
|
|
hash = "sha256-W9eXYhbynLtvZQsn724Uw0SZ5TuyK2MwREwYKGFhJj0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
postPatch = ''
|
|
|
|
find . -type f | xargs dos2unix
|
|
|
|
mv README.txt README
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
dos2unix
|
|
|
|
doxygen
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-16 17:41:37 +00:00
|
|
|
buildInputs = [
|
|
|
|
freeimage
|
|
|
|
libpgf
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-05-03 17:38:23 +00:00
|
|
|
homepage = "https://www.libpgf.org/";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Progressive Graphics Format command line program";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|