mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 21:33:07 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
55 lines
1.5 KiB
Nix
55 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, bison
|
|
, fetchurl
|
|
, flex
|
|
, gd
|
|
, libjpeg
|
|
, libpng
|
|
, libwebp
|
|
, pkg-config
|
|
, runtimeShell
|
|
, zlib
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mscgen";
|
|
version = "0.20";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.mcternan.me.uk/mscgen/software/mscgen-src-${version}.tar.gz";
|
|
sha256 = "3c3481ae0599e1c2d30b7ed54ab45249127533ab2f20e768a0ae58d8551ddc23";
|
|
};
|
|
|
|
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";
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
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.
|
|
'';
|
|
|
|
platforms = lib.platforms.unix;
|
|
mainProgram = "mscgen";
|
|
};
|
|
}
|