mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
43 lines
735 B
Nix
43 lines
735 B
Nix
{ 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;
|
|
};
|
|
}
|