2021-09-16 16:25:36 +02:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, tree-sitter }:
|
2021-07-10 05:08:12 +02:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "difftastic";
|
2022-02-10 02:04:58 +01:00
|
|
|
version = "0.19.0";
|
2021-07-10 05:08:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wilfred";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-02-10 02:04:58 +01:00
|
|
|
sha256 = "sha256-pZyQnPIdyS8XkzP9KwGKRjF21YWGgCVNeQSie9g5NcE=";
|
2021-07-10 05:08:12 +02:00
|
|
|
};
|
|
|
|
|
2022-02-10 02:04:58 +01:00
|
|
|
cargoSha256 = "sha256-VXbCrhoGF6bCzQ02Y1LQkbEVrmIfDIKFWF9vx43tt94=";
|
2021-09-16 16:25:36 +02:00
|
|
|
|
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;
|
2021-09-16 16:25:36 +02:00
|
|
|
maintainers = with maintainers; [ ethancedwards8 figsoda ];
|
2021-11-28 21:09:30 +01:00
|
|
|
mainProgram = "difft";
|
2021-07-10 05:08:12 +02:00
|
|
|
};
|
|
|
|
}
|