mirror of https://github.com/Wilfred/difftastic/
parent
641ba87416
commit
ecdf993ff1
@ -0,0 +1,24 @@
|
||||
{ lib, fetchFromGitHub, rustPlatform, tree-sitter }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "difftastic";
|
||||
version = "0.24.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wilfred";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-Yp0WwzGo8nuRZuiHdUPxPM1SYBeeVA3SMDfHnQmqUqY=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-m80PT2UQYhA5KEh7ax/fhh6vuse0DXhbFsh2x4pwkWY=";
|
||||
|
||||
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 figsoda ];
|
||||
mainProgram = "difft";
|
||||
};
|
||||
}
|
||||
@ -0,0 +1,35 @@
|
||||
{ lib, fetchFromGitHub, rustPlatform, tree-sitter }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "difftastic";
|
||||
version = "0.12.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wilfred";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-A6Z3g6fbYBynyN4OhRrZNO0ZghvT3XnIahdUQ8SE8tU=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-6/JwrPymtpj/CXqx3Pe43v+MJTNONArU2WEo/zgJhT4=";
|
||||
|
||||
postPatch = ''
|
||||
pushd vendor
|
||||
for grammar in */; do
|
||||
if [ -d "${tree-sitter.grammars}/$grammar" ]; then
|
||||
rm -r "$grammar"
|
||||
ln -s "${tree-sitter.grammars}/$grammar"
|
||||
fi
|
||||
done
|
||||
popd
|
||||
'';
|
||||
|
||||
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 figsoda ];
|
||||
mainProgram = "difft";
|
||||
};
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
../tree-sitter-nix/queries/highlights.scm
|
||||
@ -0,0 +1 @@
|
||||
tree-sitter-nix/src
|
||||
Loading…
Reference in New Issue