at v192 1.6 kB view raw
1{ fetchurl, stdenv, libpng }: 2 3# debian splits this package into plotutils and libplot2c2 4 5# gentoo passes X, this package contains fonts 6# I'm only interested in making pstoedit convert to svg 7 8stdenv.mkDerivation rec { 9 name = "plotutils-2.6"; 10 11 src = fetchurl { 12 url = "mirror://gnu/plotutils/${name}.tar.gz"; 13 sha256 = "1arkyizn5wbgvbh53aziv3s6lmd3wm9lqzkhxb3hijlp1y124hjg"; 14 }; 15 16 buildInputs = [libpng]; 17 18 patches = map fetchurl (import ./debian-patches.nix); 19 20 configureFlags = "--enable-libplotter"; # required for pstoedit 21 22 doCheck = true; 23 24 meta = { 25 description = "Powerful C/C++ library for exporting 2D vector graphics"; 26 27 longDescription = 28 '' The GNU plotutils package contains software for both programmers and 29 technical users. Its centerpiece is libplot, a powerful C/C++ 30 function library for exporting 2-D vector graphics in many file 31 formats, both vector and raster. It can also do vector graphics 32 animations. 33 34 libplot is device-independent in the sense that its API (application 35 programming interface) does not depend on the type of graphics file 36 to be exported. 37 38 Besides libplot, the package contains command-line programs for 39 plotting scientific data. Many of them use libplot to export 40 graphics. 41 ''; 42 43 homepage = http://www.gnu.org/software/plotutils/; 44 45 license = stdenv.lib.licenses.gpl2Plus; 46 maintainers = [ 47 stdenv.lib.maintainers.marcweber 48 ]; 49 platforms = stdenv.lib.platforms.gnu; 50 }; 51}