2010-04-30 13:23:26 +01:00
|
|
|
{ stdenv, fetchurl, boost }:
|
|
|
|
|
|
|
|
let
|
|
|
|
name = "source-highlight";
|
2016-05-15 12:18:53 +01:00
|
|
|
version = "3.1.8";
|
2010-04-30 13:23:26 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${name}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2013-12-10 11:02:53 +00:00
|
|
|
url = "mirror://gnu/src-highlite/${name}-${version}.tar.gz";
|
2016-05-15 12:18:53 +01:00
|
|
|
sha256 = "18xdalxg7yzrxc1njzgw7aryq2jdm7zq2yqz41sc7k6il5z6lcq1";
|
2013-12-10 11:02:53 +00:00
|
|
|
};
|
2010-04-30 13:23:26 +01:00
|
|
|
|
2013-12-10 11:02:53 +00:00
|
|
|
buildInputs = [ boost ];
|
|
|
|
|
2016-04-27 22:41:28 +01:00
|
|
|
configureFlags = [ "--with-boost=${boost.out}" ];
|
2013-12-10 11:02:53 +00:00
|
|
|
|
2014-10-11 09:51:47 +01:00
|
|
|
enableParallelBuilding = false;
|
2010-04-30 13:23:26 +01:00
|
|
|
|
|
|
|
meta = {
|
2013-12-10 11:02:53 +00:00
|
|
|
description = "Source code renderer with syntax highlighting";
|
2018-12-01 18:22:13 +00:00
|
|
|
homepage = https://www.gnu.org/software/src-highlite/;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2017-04-20 22:55:18 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2010-04-30 13:23:26 +01:00
|
|
|
longDescription =
|
|
|
|
''
|
|
|
|
GNU Source-highlight, given a source file, produces a document
|
|
|
|
with syntax highlighting.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|