2021-09-16 14:25:36 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, tree-sitter }:
|
2021-07-10 03:08:12 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "difftastic";
|
2022-04-10 13:58:27 +00:00
|
|
|
version = "0.26.0";
|
2021-07-10 03:08:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wilfred";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-04-10 13:58:27 +00:00
|
|
|
sha256 = "sha256-bluiRWueb9+UG+8jCwm+Xc483dSvoxwu+HP02I0DZBs=";
|
2021-07-10 03:08:12 +00:00
|
|
|
};
|
|
|
|
|
2022-04-10 13:58:27 +00:00
|
|
|
cargoSha256 = "sha256-nVYPvYt3Sr1VxoXiaFhpiAh+vngklsr6vn1jfBUg4C4=";
|
2021-09-16 14:25:36 +00:00
|
|
|
|
2021-07-10 03:08:12 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A syntax-aware diff";
|
|
|
|
homepage = "https://github.com/Wilfred/difftastic";
|
2021-09-07 23:00:00 +00:00
|
|
|
changelog = "https://github.com/Wilfred/difftastic/raw/${version}/CHANGELOG.md";
|
2021-07-10 03:08:12 +00:00
|
|
|
license = licenses.mit;
|
2021-09-16 14:25:36 +00:00
|
|
|
maintainers = with maintainers; [ ethancedwards8 figsoda ];
|
2021-11-28 20:09:30 +00:00
|
|
|
mainProgram = "difft";
|
2021-07-10 03:08:12 +00:00
|
|
|
};
|
|
|
|
}
|