mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 02:42:59 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ diffutils, fetchzip, lib, makeBinaryWrapper, stdenv, tk }:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tkdiff";
|
|
version = "5.7";
|
|
|
|
src = fetchzip {
|
|
url = "mirror://sourceforge/tkdiff/tkdiff-${builtins.replaceStrings ["."] ["-"] finalAttrs.version}.zip";
|
|
hash = "sha256-ZndpolvaXoCAzR4KF+Bu7DJrXyB/C2H2lWp5FyzOc4M=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
})
|