2021-02-12 07:01:54 +03:00
|
|
|
{ lib, stdenv, fetchFromGitHub, docbook_xml_dtd_412, docbook_xsl, perl, w3m, xmlto }:
|
2011-04-17 12:26:56 +04:00
|
|
|
|
2015-12-09 23:28:14 +03:00
|
|
|
stdenv.mkDerivation rec {
|
2021-02-12 07:01:54 +03:00
|
|
|
pname = "colordiff";
|
|
|
|
version = "1.0.19";
|
2014-06-23 00:55:00 +04:00
|
|
|
|
2021-02-12 07:01:54 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "daveewart";
|
|
|
|
repo = "colordiff";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1v7s1yn0qvn08iwm5js8mxn442392qyr7s9ij506byfd497ag7qk";
|
2011-04-17 12:26:56 +04:00
|
|
|
};
|
|
|
|
|
2021-02-12 07:01:54 +03:00
|
|
|
nativeBuildInputs = [ docbook_xml_dtd_412 docbook_xsl perl w3m xmlto ];
|
2014-06-23 00:55:00 +04:00
|
|
|
|
2021-02-12 07:01:54 +03:00
|
|
|
buildInputs = [ perl ];
|
2014-06-23 00:55:00 +04:00
|
|
|
|
2021-02-12 07:01:54 +03:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace Makefile \
|
|
|
|
--replace 'TMPDIR=colordiff-''${VERSION}' ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"INSTALL_DIR=/bin"
|
|
|
|
"MAN_DIR=/share/man/man1"
|
|
|
|
"DESTDIR=${placeholder "out"}"
|
|
|
|
];
|
2014-06-23 00:55:00 +04:00
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2014-06-23 00:55:00 +04:00
|
|
|
description = "Wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://www.colordiff.org/";
|
2021-02-12 07:01:54 +03:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2014-06-23 00:55:00 +04:00
|
|
|
};
|
2011-04-17 12:26:56 +04:00
|
|
|
}
|