2020-04-19 21:21:08 +01:00
|
|
|
{ stdenv
|
|
|
|
, bison
|
|
|
|
, fetchurl
|
|
|
|
, flex
|
|
|
|
, gd
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, libwebp
|
|
|
|
, pkg-config
|
|
|
|
, runtimeShell
|
|
|
|
, zlib
|
|
|
|
}:
|
2011-10-13 08:38:44 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "0.20";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "mscgen";
|
|
|
|
inherit version;
|
2011-10-13 08:38:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-01-14 17:26:46 +00:00
|
|
|
url = "http://www.mcternan.me.uk/mscgen/software/mscgen-src-${version}.tar.gz";
|
2011-10-13 08:38:44 +01:00
|
|
|
sha256 = "3c3481ae0599e1c2d30b7ed54ab45249127533ab2f20e768a0ae58d8551ddc23";
|
|
|
|
};
|
|
|
|
|
2020-04-20 14:27:28 +01:00
|
|
|
nativeBuildInputs = [ bison flex pkg-config ];
|
|
|
|
buildInputs = [ gd libjpeg libpng libwebp zlib ];
|
2011-10-13 08:38:44 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
preCheck = ''
|
2019-02-26 11:45:54 +00:00
|
|
|
sed -i -e "s|#!/bin/bash|#!${runtimeShell}|" test/renderercheck.sh
|
2011-10-13 08:38:44 +01:00
|
|
|
'';
|
|
|
|
|
2020-04-20 14:27:28 +01:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
2011-10-13 08:38:44 +01:00
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.mcternan.me.uk/mscgen/";
|
2013-01-14 17:26:46 +00:00
|
|
|
description = "Convert Message Sequence Chart descriptions into PNG, SVG, or EPS images";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2011-10-13 08:38:44 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Mscgen is a small program that parses Message Sequence Chart
|
|
|
|
descriptions and produces PNG, SVG, EPS or server side image maps
|
|
|
|
(ismaps) as the output. Message Sequence Charts (MSCs) are a way
|
|
|
|
of representing entities and interactions over some time period
|
|
|
|
and are often used in combination with SDL. MSCs are popular in
|
|
|
|
Telecoms to specify how protocols operate although MSCs need not
|
|
|
|
be complicated to create or use. Mscgen aims to provide a simple
|
|
|
|
text language that is clear to create, edit and understand, which
|
|
|
|
can also be transformed into common image formats for display or
|
|
|
|
printing.
|
|
|
|
'';
|
|
|
|
|
2020-02-17 15:48:11 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2011-10-13 08:38:44 +01:00
|
|
|
};
|
|
|
|
}
|