at 16.09-beta 1.8 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 # disable failing test on i686 19 # https://lists.gnu.org/archive/html/bug-plotutils/2016-04/msg00002.html 20 prePatch = stdenv.lib.optionalString stdenv.isi686 '' 21 substituteInPlace test/Makefile.in --replace 'spline.test' ' ' 22 ''; 23 24 patches = map fetchurl (import ./debian-patches.nix); 25 26 configureFlags = "--enable-libplotter"; # required for pstoedit 27 28 hardeningDisable = [ "format" ]; 29 30 doCheck = true; 31 32 meta = { 33 description = "Powerful C/C++ library for exporting 2D vector graphics"; 34 35 longDescription = 36 '' The GNU plotutils package contains software for both programmers and 37 technical users. Its centerpiece is libplot, a powerful C/C++ 38 function library for exporting 2-D vector graphics in many file 39 formats, both vector and raster. It can also do vector graphics 40 animations. 41 42 libplot is device-independent in the sense that its API (application 43 programming interface) does not depend on the type of graphics file 44 to be exported. 45 46 Besides libplot, the package contains command-line programs for 47 plotting scientific data. Many of them use libplot to export 48 graphics. 49 ''; 50 51 homepage = http://www.gnu.org/software/plotutils/; 52 53 license = stdenv.lib.licenses.gpl2Plus; 54 maintainers = [ stdenv.lib.maintainers.marcweber ]; 55 platforms = stdenv.lib.platforms.gnu; 56 }; 57}