2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-10-16 20:44:37 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2021-02-13 14:23:35 +00:00
|
|
|
, Security
|
2020-10-16 20:44:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "grex";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "1.4.5";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pemistahl";
|
2023-10-09 19:29:22 +00:00
|
|
|
repo = "grex";
|
2020-10-16 20:44:37 +00:00
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-Ut2H2H66XN1+wHpYivnuhil21lbd7bwIcIcMyIimdis=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-ZRE1vKgi0/UtSe2bdN0BLdtDfAauTfwcqOcl3y63fAA=";
|
2022-08-12 12:06:08 +00:00
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/grex --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Command-line tool for generating regular expressions from user-provided test cases";
|
2020-10-16 20:44:37 +00:00
|
|
|
homepage = "https://github.com/pemistahl/grex";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/pemistahl/grex/releases/tag/v${version}";
|
2020-10-16 20:44:37 +00:00
|
|
|
license = licenses.asl20;
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "grex";
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 mfrw ];
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|