mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-21 04:42:07 +03:00
37 lines
960 B
Nix
37 lines
960 B
Nix
{ lib, stdenv, fetchFromGitHub, docbook_xml_dtd_412, docbook_xsl, perl, w3m, xmlto }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "colordiff";
|
|
version = "1.0.19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "daveewart";
|
|
repo = "colordiff";
|
|
rev = "v${version}";
|
|
sha256 = "1v7s1yn0qvn08iwm5js8mxn442392qyr7s9ij506byfd497ag7qk";
|
|
};
|
|
|
|
nativeBuildInputs = [ docbook_xml_dtd_412 docbook_xsl perl w3m xmlto ];
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace Makefile \
|
|
--replace 'TMPDIR=colordiff-''${VERSION}' ""
|
|
'';
|
|
|
|
installFlags = [
|
|
"INSTALL_DIR=/bin"
|
|
"MAN_DIR=/share/man/man1"
|
|
"DESTDIR=${placeholder "out"}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting";
|
|
homepage = "https://www.colordiff.org/";
|
|
license = licenses.gpl2Plus;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|