blob: b057a07e56c42b77fb6f76a5445650dc5f0e716a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ diffutils, fetchzip, lib, makeBinaryWrapper, stdenv, tk }:
stdenv.mkDerivation (finalAttrs: {
pname = "tkdiff";
version = "5.6";
src = fetchzip {
url = "mirror://sourceforge/tkdiff/tkdiff-${builtins.replaceStrings ["."] ["-"] finalAttrs.version}.zip";
hash = "sha256-EpbIdjsejkkTaSpoZRM5AHz0r1Cio+YzRryK0BoghBk=";
};
patches = [
# fix regression: allow /dev/null again. eg: "tkdiff /dev/null file"
# svn diff --git -r188:189 https://svn.code.sf.net/p/tkdiff/code/trunk
./189.patch
# fix regression: trigger redraw when inline recursive diff requested
# svn diff --git -r193:194 https://svn.code.sf.net/p/tkdiff/code/trunk | \
# sed -e '/^@@ -4545,7/,14d' -e '/^@@ -18063,7/,$d'
./194.patch
];
nativeBuildInputs = [ makeBinaryWrapper ];
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin tkdiff
wrapProgram $out/bin/tkdiff \
--prefix PATH : ${lib.makeBinPath [ diffutils tk ]}
runHook postInstall
'';
meta = {
description = "A graphical front end to the diff program";
homepage = "https://tkdiff.sourceforge.io/";
license = lib.licenses.gpl2Plus;
longDescription = ''
TkDiff is a graphical front end to the diff program. It provides a
side-by-side view of the differences between two text files, along
with several innovative features such as diff bookmarks, a graphical
map of differences for quick navigation, and a facility for slicing
diff regions to achieve exactly the merge output desired.
'';
mainProgram = "tkdiff";
maintainers = with lib.maintainers; [ mikaelfangel ];
platforms = tk.meta.platforms;
};
})
|