depot/third_party/nixpkgs/pkgs/tools/graphics/pgf/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

42 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;
};
}