Files
nixpkgs/pkgs/by-name/tk/tkdiff/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

54 lines
1.3 KiB
Nix

{
diffutils,
fetchzip,
lib,
makeBinaryWrapper,
stdenv,
tk,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "tkdiff";
version = "6.0";
src = fetchzip {
url = "mirror://sourceforge/tkdiff/tkdiff-${
builtins.replaceStrings [ "." ] [ "-" ] finalAttrs.version
}.zip";
hash = "sha256-fBPeXL6G9LZZHIapj/lncNrUU02ocnqDOOJfvlKIyRA=";
};
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";
maintainers = with lib.maintainers; [ mikaelfangel ];
platforms = tk.meta.platforms;
};
})