nixpkgs/pkgs/tools/text/colordiff/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

27 lines
757 B
Nix

{ stdenv, fetchurl, perl /*, xmlto */}:
stdenv.mkDerivation rec {
name = "colordiff-1.0.18";
src = fetchurl {
urls = [
"https://www.colordiff.org/${name}.tar.gz"
"http://www.colordiff.org/archive/${name}.tar.gz"
];
sha256 = "1q6n60n4b9fnzccxyxv04mxjsql4ddq17vl2c74ijvjdhpcfrkr9";
};
buildInputs = [ perl /* xmlto */ ];
dontBuild = 1; # do not build doc yet.
installPhase = ''make INSTALL_DIR=/bin MAN_DIR=/share/man/man1 DESTDIR="$out" install'';
meta = with stdenv.lib; {
description = "Wrapper for 'diff' that produces the same output but with pretty 'syntax' highlighting";
homepage = https://www.colordiff.org/;
license = licenses.gpl3;
platforms = platforms.linux ++ platforms.darwin;
};
}