1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5 nix-update-script,
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "angle-grinder";
10 version = "0.19.4";
11
12 src = fetchFromGitHub {
13 owner = "rcoh";
14 repo = "angle-grinder";
15 tag = "v${version}";
16 sha256 = "sha256-1SZho04qJcNi84ZkDmxoVkLx9VJX04QINZQ6ZEoCq+c=";
17 };
18
19 cargoHash = "sha256-B7JFwFzE8ZvbTjCUZ6IEtjavPGkx3Nb9FMSPbNFqiuU=";
20
21 passthru = {
22 updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
23 };
24
25 meta = with lib; {
26 description = "Slice and dice logs on the command line";
27 homepage = "https://github.com/rcoh/angle-grinder";
28 license = licenses.mit;
29 maintainers = with maintainers; [ bbigras ];
30 mainProgram = "agrind";
31 };
32}