3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/source-highlight/default.nix

33 lines
809 B
Nix
Raw Normal View History

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