2023-10-06 07:15:35 +00:00
|
|
|
{ diffutils, fetchzip, lib, makeBinaryWrapper, stdenv, tk }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "tkdiff";
|
2024-05-12 04:58:53 +00:00
|
|
|
version = "5.7";
|
2023-10-06 07:15:35 +00:00
|
|
|
|
|
|
|
src = fetchzip {
|
|
|
|
url = "mirror://sourceforge/tkdiff/tkdiff-${builtins.replaceStrings ["."] ["-"] finalAttrs.version}.zip";
|
2024-05-12 04:58:53 +00:00
|
|
|
hash = "sha256-ZndpolvaXoCAzR4KF+Bu7DJrXyB/C2H2lWp5FyzOc4M=";
|
2023-10-06 07:15:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 = "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";
|
2023-11-11 20:02:11 +00:00
|
|
|
maintainers = with lib.maintainers; [ mikaelfangel ];
|
2023-10-06 07:15:35 +00:00
|
|
|
platforms = tk.meta.platforms;
|
|
|
|
};
|
|
|
|
})
|