diff options
author | Lluís Batlle i Rossell <viric@viric.name> | 2015-01-23 16:08:21 +0100 |
---|---|---|
committer | Lluís Batlle i Rossell <viric@viric.name> | 2015-01-23 16:09:33 +0100 |
commit | 84e9a2e6364c58c2f62e6e02490fe739169dce5f (patch) | |
tree | 9abcab9f64f175b97d49b9d11b000fdfb65e9c86 /pkgs/tools/graphics/pgf | |
parent | 031af8f0cf9687838960cd9d11073766fe9366a0 (diff) |
Adding a pgf command line tool.
(cherry picked from commit 442148e20a031714b03a41eb44f343f6ad088fc6)
Diffstat (limited to 'pkgs/tools/graphics/pgf')
-rw-r--r-- | pkgs/tools/graphics/pgf/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/pgf/default.nix b/pkgs/tools/graphics/pgf/default.nix new file mode 100644 index 0000000000000..c4fc91edad405 --- /dev/null +++ b/pkgs/tools/graphics/pgf/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchurl, autoconf, automake, libtool, dos2unix, libpgf, freeimage, doxygen }: + +with stdenv.lib; + +let + version = "6.14.12"; +in +stdenv.mkDerivation { + name = "pgf-${version}"; + + src = fetchurl { + url = "mirror://sourceforge/libpgf/pgf-console-src-${version}.tar.gz"; + sha256 = "1vfm12cfq3an3xg0679bcwdmjq2x1bbij1iwsmm60hwmrm3zvab0"; + }; + + buildInputs = [ autoconf automake libtool dos2unix libpgf freeimage doxygen ]; + + patchPhase = '' + sed 1i'#include <inttypes.h>' -i src/PGF.cpp + sed s/__int64/int64_t/g -i src/PGF.cpp + ''; + + preConfigure = "dos2unix configure.ac; sh autogen.sh"; + +# configureFlags = optional static "--enable-static --disable-shared"; + + meta = { + homepage = http://www.libpgf.org/; + description = "Progressive Graphics Format command line program"; + license = stdenv.lib.licenses.lgpl21Plus; + }; +} |