lol
1{ stdenv, fetchurl, flex, bison, gd, libpng, libjpeg, freetype, zlib, libwebp }:
2
3let
4 version = "0.20";
5in
6stdenv.mkDerivation {
7 name = "mscgen-${version}";
8
9 src = fetchurl {
10 url = "http://www.mcternan.me.uk/mscgen/software/mscgen-src-${version}.tar.gz";
11 sha256 = "3c3481ae0599e1c2d30b7ed54ab45249127533ab2f20e768a0ae58d8551ddc23";
12 };
13
14 buildInputs = [ flex bison gd libjpeg libpng freetype zlib libwebp ];
15
16 doCheck = true;
17 preCheck = ''
18 sed -i -e "s|#!/bin/bash|#!${stdenv.shell}|" test/renderercheck.sh
19 '';
20
21 meta = {
22 homepage = http://www.mcternan.me.uk/mscgen/;
23 description = "Convert Message Sequence Chart descriptions into PNG, SVG, or EPS images";
24 license = stdenv.lib.licenses.gpl2;
25
26 longDescription = ''
27 Mscgen is a small program that parses Message Sequence Chart
28 descriptions and produces PNG, SVG, EPS or server side image maps
29 (ismaps) as the output. Message Sequence Charts (MSCs) are a way
30 of representing entities and interactions over some time period
31 and are often used in combination with SDL. MSCs are popular in
32 Telecoms to specify how protocols operate although MSCs need not
33 be complicated to create or use. Mscgen aims to provide a simple
34 text language that is clear to create, edit and understand, which
35 can also be transformed into common image formats for display or
36 printing.
37 '';
38
39 platforms = stdenv.lib.platforms.linux;
40 maintainers = [ stdenv.lib.maintainers.peti ];
41 };
42}