2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2020-08-06 08:34:20 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, fetchpatch
|
|
|
|
, rustPlatform
|
2021-02-12 03:23:51 +00:00
|
|
|
, Security
|
2020-08-06 08:34:20 +00:00
|
|
|
, libiconv
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "grex";
|
2022-07-27 20:51:18 +00:00
|
|
|
version = "1.4.0";
|
2020-08-06 08:34:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pemistahl";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-07-27 20:51:18 +00:00
|
|
|
sha256 = "sha256-iKrsiHGXaZ4OXkS28+6r0AhPZsb22fDVbDA2QjaVVTw=";
|
2020-08-06 08:34:20 +00:00
|
|
|
};
|
|
|
|
|
2022-07-27 20:51:18 +00:00
|
|
|
cargoSha256 = "sha256-J+kz4aj6CXm0QsMQfPwK+30EtQOtfpCwp821DLhpVCI=";
|
|
|
|
|
2021-02-12 03:23:51 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
2020-08-06 08:34:20 +00:00
|
|
|
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
|
|
$out/bin/grex --help > /dev/null
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-08-06 08:34:20 +00:00
|
|
|
description = "A command-line tool for generating regular expressions from user-provided test cases";
|
|
|
|
homepage = "https://github.com/pemistahl/grex";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
|
|
};
|
|
|
|
}
|