blob: 35cac23994ba702a2e89e7d34d194c9b0bfba5f9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
let
version = "0.3.9";
in
rustPlatform.buildRustPackage {
pname = "hgrep";
inherit version;
src = fetchFromGitHub {
owner = "rhysd";
repo = "hgrep";
tag = "v${version}";
hash = "sha256-xBLpEs0PvYb7sIca9yb3vhi2Bsr1BFqB0jlD+bZT2EI=";
};
cargoHash = "sha256-TP+PClv7FX3kRBwJ0RAKbKoTKpi7hTZgw/Z/ktFKbwQ=";
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Grep with human-friendly search results";
homepage = "https://github.com/rhysd/hgrep";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ axka ];
mainProgram = "hgrep";
};
}
|