1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
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";
};
}