summary refs log tree commit diff
path: root/pkgs/tools/text/source-highlight/default.nix
blob: ca3ec39da71ffdfdb0e54011262ca9d7ba9ab18c (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
{ stdenv, fetchurl, boost }:

let
  name = "source-highlight";
  version = "3.1.6";
in
stdenv.mkDerivation {
  name = "${name}-${version}";

  src = fetchurl {
      url = "mirror://gnu/src-highlite/${name}-${version}.tar.gz";
      sha256 = "0a5zh876nc1gig8z586b953r8ahh9zbs1lmi8vxjrkwp6zqzf4xm";
    };

  configureFlags = [ "--with-boost=${boost}" ];

  buildInputs = [boost];
  doCheck = true;

  meta = {
    description = "GNU Source-Highlight, source code renderer with syntax highlighting";
    homepage = "http://www.gnu.org/software/src-highlite/";
    license = "GPLv3+";
    maintainers = [ ];
    platforms = stdenv.lib.platforms.all;
    longDescription =
      ''
        GNU Source-highlight, given a source file, produces a document
        with syntax highlighting.
      '';
  };
}