summary refs log tree commit diff
path: root/pkgs/tools/text/highlight/default.nix
blob: eb6359ba978214be4af6d38d811c1040d985a027 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{ stdenv, fetchurl, getopt, lua, boost, pkgconfig }:

stdenv.mkDerivation rec {
  name = "highlight-${version}";
  version = "3.28";

  src = fetchurl {
    url = "http://www.andre-simon.de/zip/${name}.tar.bz2";
    sha256 = "1kg73isgz3czb1k6ccajqzifahr3zs9ci8168k0dlj31j1nlndin";
  };

  buildInputs = [ getopt lua boost pkgconfig ];

  preConfigure = ''makeFlags="PREFIX=$out conf_dir=$out/etc/highlight/"'';

  meta = {
    description = "Source code highlighting tool";
    platforms = stdenv.lib.platforms.unix;
  };
}