nixpkgs/pkgs/tools/text/difftastic/default.nix

25 lines
698 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, rustPlatform, tree-sitter }:
2021-07-10 05:08:12 +02:00
rustPlatform.buildRustPackage rec {
pname = "difftastic";
version = "0.19.0";
2021-07-10 05:08:12 +02:00
src = fetchFromGitHub {
owner = "wilfred";
repo = pname;
rev = version;
sha256 = "sha256-pZyQnPIdyS8XkzP9KwGKRjF21YWGgCVNeQSie9g5NcE=";
2021-07-10 05:08:12 +02:00
};
cargoSha256 = "sha256-VXbCrhoGF6bCzQ02Y1LQkbEVrmIfDIKFWF9vx43tt94=";
2021-07-10 05:08:12 +02:00
meta = with lib; {
description = "A syntax-aware diff";
homepage = "https://github.com/Wilfred/difftastic";
2021-09-08 01:00:00 +02:00
changelog = "https://github.com/Wilfred/difftastic/raw/${version}/CHANGELOG.md";
2021-07-10 05:08:12 +02:00
license = licenses.mit;
maintainers = with maintainers; [ ethancedwards8 figsoda ];
2021-11-28 21:09:30 +01:00
mainProgram = "difft";
2021-07-10 05:08:12 +02:00
};
}