1{
2 lib,
3 fetchFromGitHub,
4 rustPlatform,
5}:
6
7rustPlatform.buildRustPackage rec {
8 pname = "grex";
9 version = "1.4.5";
10
11 src = fetchFromGitHub {
12 owner = "pemistahl";
13 repo = "grex";
14 rev = "v${version}";
15 hash = "sha256-Ut2H2H66XN1+wHpYivnuhil21lbd7bwIcIcMyIimdis=";
16 };
17
18 cargoHash = "sha256-OsK6X7qwMMQ1FK3JE98J2u6pn6AixE8izFmxUVDs5GM=";
19
20 doInstallCheck = true;
21 installCheckPhase = ''
22 $out/bin/grex --help > /dev/null
23 '';
24
25 meta = {
26 description = "Command-line tool for generating regular expressions from user-provided test cases";
27 homepage = "https://github.com/pemistahl/grex";
28 changelog = "https://github.com/pemistahl/grex/releases/tag/v${version}";
29 license = lib.licenses.asl20;
30 mainProgram = "grex";
31 maintainers = with lib.maintainers; [
32 SuperSandro2000
33 mfrw
34 ];
35 };
36}