13 buildPythonPackage rec {
16 format = "setuptools";
19 inherit pname version;
20 hash = "sha256-ii6EWI7zHT5SVwD6lksfmqth8MnEYoHgU0GlbgHc17g=";
24 substituteInPlace ydiff.py \
25 --replace "['git'" "['${gitMinimal}/bin/git'" \
26 --replace "['hg'" "['${mercurial}/bin/hg'" \
27 --replace "['svn'" "['${subversion}/bin/svn'" \
28 --replace "['filterdiff'" "['${patchutils}/bin/filterdiff'" \
29 --replace "['less'" "['${less}/bin/less'" # doesn't support PAGER from env
30 substituteInPlace tests/test_ydiff.py \
31 --replace /bin/rm rm \
33 patchShebangs setup.py
34 patchShebangs tests/*.sh
37 nativeCheckInputs = [ pygments ];
41 make reg # We don't want the linter or coverage check.
46 description = "View colored, incremental diff in workspace or from stdin with side by side and auto pager support (Was \"cdiff\")";
47 mainProgram = "ydiff";
49 Term based tool to view colored, incremental diff in a version
50 controlled workspace (supports Git, Mercurial, Perforce and Svn
51 so far) or from stdin, with side by side (similar to diff -y)
52 and auto pager support.
54 homepage = "https://github.com/ymattw/ydiff";
55 license = licenses.bsd3;
56 maintainers = (with maintainers; [ leenaars ]) ++ teams.deshaw.members;