Merge pull request #85580 from siriobalmelli-foss/fix/mscgen

mscgen: fix build
This commit is contained in:
Jörg Thalheim 2020-04-20 17:51:02 +01:00 committed by GitHub
commit 59242df8d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,15 @@
{ stdenv, fetchurl, flex, bison, gd, libpng, libjpeg, freetype, zlib, libwebp, runtimeShell }:
{ stdenv
, bison
, fetchurl
, flex
, gd
, libjpeg
, libpng
, libwebp
, pkg-config
, runtimeShell
, zlib
}:
let
version = "0.20";
@ -12,13 +23,16 @@ stdenv.mkDerivation {
sha256 = "3c3481ae0599e1c2d30b7ed54ab45249127533ab2f20e768a0ae58d8551ddc23";
};
buildInputs = [ flex bison gd libjpeg libpng freetype zlib libwebp ];
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";