mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
54 lines
1.3 KiB
Nix
54 lines
1.3 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;
|
|
};
|
|
})
|