mscgen: clean up build

1. Remove freetype dependency:
    - was not being used by build
    - trying to enable freetype gives nontrivial error
      'gdoTextWidth: Problem doing text layout (GDFONTPATH=)'

2. Correctly link manpages by specifying 'outputs'.

3. Separate nativeBuildInputs from buildInputs

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
This commit is contained in:
Sirio Balmelli 2020-04-20 15:27:28 +02:00
parent 410fc69c7c
commit 3a7dca9950
No known key found for this signature in database
GPG Key ID: 0437A96EFE4C426E
1 changed files with 4 additions and 2 deletions

View File

@ -2,7 +2,6 @@
, bison
, fetchurl
, flex
, freetype
, gd
, libjpeg
, libpng
@ -24,13 +23,16 @@ stdenv.mkDerivation {
sha256 = "3c3481ae0599e1c2d30b7ed54ab45249127533ab2f20e768a0ae58d8551ddc23";
};
buildInputs = [ bison flex freetype gd libjpeg libpng libwebp pkg-config zlib ];
nativeBuildInputs = [ bison flex pkg-config ];
buildInputs = [ gd libjpeg libpng libwebp zlib ];
doCheck = true;
preCheck = ''
sed -i -e "s|#!/bin/bash|#!${runtimeShell}|" test/renderercheck.sh
'';
outputs = [ "out" "man" ];
meta = {
homepage = "http://www.mcternan.me.uk/mscgen/";
description = "Convert Message Sequence Chart descriptions into PNG, SVG, or EPS images";