summary refs log blame commit diff
path: root/pkgs/tools/text/difftastic/default.nix
blob: adacd39a99a6ee3a21905bf60ef7ed9eda161ae5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                       
                  




                         
                                                                   

    
                                                                      



                                                       
                                                                                    

                                                       

    
{ lib, fetchFromGitHub, rustPlatform }:

rustPlatform.buildRustPackage rec {
  pname = "difftastic";
  version = "0.9";

  src = fetchFromGitHub {
    owner = "wilfred";
    repo = pname;
    rev = version;
    sha256 = "sha256-spncRJjROytGnIig6ujqHu0e/XBTN4dsJ3og4aIu+l8=";
  };

  cargoSha256 = "sha256-2xGwS4wjLQ7zmfZ2gMdlUAkjPDF6SmUaiX2j1KYy0vo=";

  meta = with lib; {
    description = "A syntax-aware diff";
    homepage = "https://github.com/Wilfred/difftastic";
    changelog = "https://github.com/Wilfred/difftastic/raw/${version}/CHANGELOG.md";
    license = licenses.mit;
    maintainers = with maintainers; [ ethancedwards8 ];
  };
}