1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00
nixpkgs/pkgs/tools/text/difftastic/default.nix

27 lines
792 B
Nix
Raw Normal View History

2022-04-11 08:37:15 +01:00
{ lib, fetchFromGitHub, rustPlatform, tree-sitter, difftastic, testVersion }:
2021-07-10 04:08:12 +01:00
rustPlatform.buildRustPackage rec {
pname = "difftastic";
2022-04-11 08:37:15 +01:00
version = "0.26.3";
2021-07-10 04:08:12 +01:00
src = fetchFromGitHub {
owner = "wilfred";
repo = pname;
rev = version;
2022-04-11 08:37:15 +01:00
sha256 = "11qvl78dskhawmzjbff2cd4icwvlfhg8hzf1law5w5cr768zv7yn";
2021-07-10 04:08:12 +01:00
};
2022-04-11 08:37:15 +01:00
cargoSha256 = "1kmwd9m94kl3j6ajfndr7rjx66fsqvnn2jh0m54ac5qd5r9hhdc8";
passthru.tests.version = testVersion { package = difftastic; };
2021-07-10 04:08:12 +01:00
meta = with lib; {
description = "A syntax-aware diff";
homepage = "https://github.com/Wilfred/difftastic";
2021-09-08 00:00:00 +01:00
changelog = "https://github.com/Wilfred/difftastic/raw/${version}/CHANGELOG.md";
2021-07-10 04:08:12 +01:00
license = licenses.mit;
maintainers = with maintainers; [ ethancedwards8 figsoda ];
2021-11-28 20:09:30 +00:00
mainProgram = "difft";
2021-07-10 04:08:12 +01:00
};
}