2010-04-30 13:23:26 +01:00
|
|
|
{ stdenv, fetchurl, boost }:
|
|
|
|
|
|
|
|
let
|
|
|
|
name = "source-highlight";
|
2012-01-18 20:52:55 +00:00
|
|
|
version = "3.1.6";
|
2010-04-30 13:23:26 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/src-highlite/${name}-${version}.tar.gz";
|
2012-01-18 20:52:55 +00:00
|
|
|
sha256 = "0a5zh876nc1gig8z586b953r8ahh9zbs1lmi8vxjrkwp6zqzf4xm";
|
2010-04-30 13:23:26 +01:00
|
|
|
};
|
|
|
|
|
2011-09-05 00:06:03 +01:00
|
|
|
configureFlags = [ "--with-boost=${boost}" ];
|
2011-02-23 17:36:32 +00:00
|
|
|
|
2010-04-30 13:23:26 +01:00
|
|
|
buildInputs = [boost];
|
2011-02-23 17:36:32 +00:00
|
|
|
doCheck = true;
|
2010-04-30 13:23:26 +01:00
|
|
|
|
|
|
|
meta = {
|
2011-02-23 17:36:32 +00:00
|
|
|
description = "GNU Source-Highlight, source code renderer with syntax highlighting";
|
2010-04-30 13:23:26 +01:00
|
|
|
homepage = "http://www.gnu.org/software/src-highlite/";
|
|
|
|
license = "GPLv3+";
|
2011-02-23 17:36:32 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ludo ];
|
2010-04-30 13:23:26 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
GNU Source-highlight, given a source file, produces a document
|
|
|
|
with syntax highlighting.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|