Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 69 lines 1.6 kB view raw
1{ 2 lib, 3 stdenv, 4 bison, 5 fetchurl, 6 flex, 7 gd, 8 libjpeg, 9 libpng, 10 libwebp, 11 pkg-config, 12 runtimeShell, 13 zlib, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "mscgen"; 18 version = "0.20"; 19 20 src = fetchurl { 21 url = "http://www.mcternan.me.uk/mscgen/software/mscgen-src-${version}.tar.gz"; 22 sha256 = "3c3481ae0599e1c2d30b7ed54ab45249127533ab2f20e768a0ae58d8551ddc23"; 23 }; 24 25 nativeBuildInputs = [ 26 bison 27 flex 28 pkg-config 29 ]; 30 buildInputs = [ 31 gd 32 libjpeg 33 libpng 34 libwebp 35 zlib 36 ]; 37 38 doCheck = true; 39 preCheck = '' 40 sed -i -e "s|#!/bin/bash|#!${runtimeShell}|" test/renderercheck.sh 41 ''; 42 43 outputs = [ 44 "out" 45 "man" 46 ]; 47 48 meta = { 49 homepage = "http://www.mcternan.me.uk/mscgen/"; 50 description = "Convert Message Sequence Chart descriptions into PNG, SVG, or EPS images"; 51 license = lib.licenses.gpl2Plus; 52 53 longDescription = '' 54 Mscgen is a small program that parses Message Sequence Chart 55 descriptions and produces PNG, SVG, EPS or server side image maps 56 (ismaps) as the output. Message Sequence Charts (MSCs) are a way 57 of representing entities and interactions over some time period 58 and are often used in combination with SDL. MSCs are popular in 59 Telecoms to specify how protocols operate although MSCs need not 60 be complicated to create or use. Mscgen aims to provide a simple 61 text language that is clear to create, edit and understand, which 62 can also be transformed into common image formats for display or 63 printing. 64 ''; 65 66 platforms = lib.platforms.unix; 67 mainProgram = "mscgen"; 68 }; 69}