2023-02-09 17:06:15 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchzip
|
|
|
|
, autoreconfHook
|
|
|
|
, dos2unix
|
|
|
|
, doxygen
|
|
|
|
, freeimage
|
|
|
|
, libpgf
|
|
|
|
}:
|
2015-01-23 15:08:21 +00:00
|
|
|
|
2021-07-14 15:10:11 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "pgf";
|
2023-02-09 17:06:15 +00:00
|
|
|
version = "7.21.7";
|
2015-01-23 15:08:21 +00:00
|
|
|
|
2023-02-09 17:06:15 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/libpgf/libpgf/${version}/pgf-console.zip";
|
|
|
|
hash = "sha256-W9eXYhbynLtvZQsn724Uw0SZ5TuyK2MwREwYKGFhJj0=";
|
2015-01-23 15:08:21 +00:00
|
|
|
};
|
|
|
|
|
2023-02-09 17:06:15 +00:00
|
|
|
postPatch = ''
|
|
|
|
find . -type f | xargs dos2unix
|
|
|
|
mv README.txt README
|
2015-01-23 15:08:21 +00:00
|
|
|
'';
|
|
|
|
|
2023-02-09 17:06:15 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
dos2unix
|
|
|
|
doxygen
|
|
|
|
];
|
2015-01-23 15:08:21 +00:00
|
|
|
|
2023-02-09 17:06:15 +00:00
|
|
|
buildInputs = [
|
|
|
|
freeimage
|
|
|
|
libpgf
|
|
|
|
];
|
2015-01-23 15:08:21 +00:00
|
|
|
|
|
|
|
meta = {
|
2020-04-24 14:58:19 +00:00
|
|
|
homepage = "https://www.libpgf.org/";
|
2015-01-23 15:08:21 +00:00
|
|
|
description = "Progressive Graphics Format command line program";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.lgpl21Plus;
|
|
|
|
platforms = lib.platforms.linux;
|
2015-01-23 15:08:21 +00:00
|
|
|
};
|
|
|
|
}
|