mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
bfc5bc58e7
svn path=/nixpkgs/trunk/; revision=20148
23 lines
468 B
Nix
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";
|
|
};
|
|
}
|