2014-06-22 20:55:00 +00:00
|
|
|
{ stdenv, fetchurl, perl /*, xmlto */}:
|
2011-04-17 08:26:56 +00:00
|
|
|
|
2015-12-09 20:28:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2017-06-08 17:57:22 +00:00
|
|
|
name = "colordiff-1.0.18";
|
2014-06-22 20:55:00 +00:00
|
|
|
|
2011-04-17 08:26:56 +00:00
|
|
|
src = fetchurl {
|
2015-12-15 23:49:43 +00:00
|
|
|
urls = [
|
|
|
|
"http://www.colordiff.org/${name}.tar.gz"
|
|
|
|
"http://www.colordiff.org/archive/${name}.tar.gz"
|
|
|
|
];
|
2017-06-08 17:57:22 +00:00
|
|
|
sha256 = "1q6n60n4b9fnzccxyxv04mxjsql4ddq17vl2c74ijvjdhpcfrkr9";
|
2011-04-17 08:26:56 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ perl /* xmlto */ ];
|
2014-06-22 20:55:00 +00:00
|
|
|
|
2011-04-17 08:26:56 +00:00
|
|
|
dontBuild = 1; # do not build doc yet.
|
2014-06-22 20:55:00 +00:00
|
|
|
|
2011-10-09 18:45:47 +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";
|
2017-08-02 21:50:51 +00:00
|
|
|
homepage = https://www.colordiff.org/;
|
2014-06-22 20:55:00 +00:00
|
|
|
license = licenses.gpl3;
|
2015-08-13 14:11:36 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2016-02-10 13:59:36 +00:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
2014-06-22 20:55:00 +00:00
|
|
|
};
|
2011-04-17 08:26:56 +00:00
|
|
|
}
|