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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
794 B
Nix
Raw Normal View History

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