about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/analysis/egypt/default.nix
blob: 0266502209913c1c886154dc57539156c9bc7b1c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, fetchurl, perlPackages }:

perlPackages.buildPerlPackage rec {
  pname = "egypt";
  version = "1.10";

  src = fetchurl {
    sha256 = "0r0wj6v8z9fzlh9pb5617kyjdf92ppmlbzajaarrq729bbb6ln5m";
    url = "https://www.gson.org/egypt/download/${pname}-${version}.tar.gz";
  };

  outputs = [ "out" ];

  enableParallelBuilding = true;

  doCheck = true;

  meta = with lib; {
    description = "Tool for making call graphs of C programmes";
    longDescription = ''
      Egypt is a simple tool for creating call graphs of C programs. It neither
      analyzes source code nor lays out graphs. Instead, it leaves the source
      code analysis to GCC and the graph layout to Graphviz, both of which are
      better at their respective jobs than egypt itself could ever hope to be.
      Egypt is simply a very small Perl script that glues these existing tools
      together.
    '';
    homepage = "http://www.gson.org/egypt/";
    license = with licenses; [ artistic1 gpl1Plus ];
    platforms = platforms.unix;
  };
}