3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/highlight/default.nix
Michael Raskin bfc5bc58e7 Fix missing include
svn path=/nixpkgs/trunk/; revision=20148
2010-02-21 08:24:00 +00:00

23 lines
468 B
Nix

{ stdenv, fetchurl, getopt }:
stdenv.mkDerivation rec {
name = "highlight-2.6.10";
src = fetchurl {
url = "http://www.andre-simon.de/zip/${name}.tar.bz2";
sha256 = "18f2ki9pajxlp0aq4ingxj7m0cp7wlbc40xm25pnxc1yis9vlira";
};
buildInputs = [getopt];
preBuild = ''
sed -e '/#include <map>/i#include <stdio.h>' -i src/re/Pattern.h
'';
makeFlags = ["PREFIX=$out"];
meta = {
description = "Source code highlighting tool";
};
}