nixpkgs/pkgs/tools/text/colordiff/default.nix

27 lines
759 B
Nix
Raw Normal View History

2014-06-22 20:55:00 +00:00
{ stdenv, fetchurl, perl /*, xmlto */}:
2015-12-09 20:28:14 +00:00
stdenv.mkDerivation rec {
2020-05-04 19:53:17 +00:00
name = "colordiff-1.0.19";
2014-06-22 20:55:00 +00:00
src = fetchurl {
urls = [
"https://www.colordiff.org/${name}.tar.gz"
"http://www.colordiff.org/archive/${name}.tar.gz"
];
2020-05-04 19:53:17 +00:00
sha256 = "069vzzgs7b44bmfh3ks2psrdb26s1w19gp9w4xxbgi7nhx6w3s26";
};
buildInputs = [ perl /* xmlto */ ];
2014-06-22 20:55:00 +00:00
dontBuild = 1; # do not build doc yet.
2014-06-22 20:55:00 +00:00
installPhase = ''make INSTALL_DIR=/bin MAN_DIR=/share/man/man1 DESTDIR="$out" install'';
2014-06-22 20:55:00 +00:00
meta = with stdenv.lib; {
description = "Wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting";
homepage = "https://www.colordiff.org/";
2014-06-22 20:55:00 +00:00
license = licenses.gpl3;
platforms = platforms.linux ++ platforms.darwin;
2014-06-22 20:55:00 +00:00
};
}