nixpkgs-suyu/pkgs/tools/text/difftastic/default.nix
Bernardo Meurer 4fc58aa24c difftastic: 0.12.0 -> 0.19.0
This also removes our fiddling with the vendored tree-sitter grammars.
It seems like difftastic is _really_ peculiar about the exact version of
the grammar it must use, so let's just leave it to use its vendored
ones.
2022-02-09 19:52:12 -08:00

24 lines
698 B
Nix

{ lib, fetchFromGitHub, rustPlatform, tree-sitter }:
rustPlatform.buildRustPackage rec {
pname = "difftastic";
version = "0.19.0";
src = fetchFromGitHub {
owner = "wilfred";
repo = pname;
rev = version;
sha256 = "sha256-pZyQnPIdyS8XkzP9KwGKRjF21YWGgCVNeQSie9g5NcE=";
};
cargoSha256 = "sha256-VXbCrhoGF6bCzQ02Y1LQkbEVrmIfDIKFWF9vx43tt94=";
meta = with lib; {
description = "A syntax-aware diff";
homepage = "https://github.com/Wilfred/difftastic";
changelog = "https://github.com/Wilfred/difftastic/raw/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ ethancedwards8 figsoda ];
mainProgram = "difft";
};
}