mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-27 14:34:33 +00:00
riffdiff: use best practices
This commit is contained in:
parent
49872f3ca6
commit
67dee65a87
@ -2,6 +2,9 @@
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
nix-update-script,
|
||||
riffdiff,
|
||||
testers,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
@ -11,17 +14,23 @@ rustPlatform.buildRustPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "walles";
|
||||
repo = "riff";
|
||||
rev = version;
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-IdYQ8vD3ZIzqdNY4JtR8f2huV/DWOhV8FUn7tuRe7IQ=";
|
||||
};
|
||||
|
||||
cargoHash = "sha256-1on4CTstEvjNLtk1RG6dcNl0XhaPYAy+U0DYn/aVzEg=";
|
||||
|
||||
meta = with lib; {
|
||||
passthru = {
|
||||
tests.version = testers.testVersion { package = riffdiff; };
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Diff filter highlighting which line parts have changed";
|
||||
homepage = "https://github.com/walles/riff";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ johnpyp ];
|
||||
changelog = "https://github.com/walles/riff/releases/tag/${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ johnpyp ];
|
||||
mainProgram = "riff";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user