diff options
author | Cole Mickens <cole.mickens@gmail.com> | 2020-08-06 01:34:20 -0700 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2020-10-13 08:06:26 +0200 |
commit | e362ce119b1021cc6a397ac4d1d3eea9ff6747b8 (patch) | |
tree | 46b2655e80d90f423553275be07da177d0a353db /pkgs/tools/misc | |
parent | 13c56577007d0b767c5fe057b668c0590a480c0a (diff) |
grex: init at 1.1.0
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/grex/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/misc/grex/default.nix b/pkgs/tools/misc/grex/default.nix new file mode 100644 index 000000000000..c4f1c8ea9c77 --- /dev/null +++ b/pkgs/tools/misc/grex/default.nix @@ -0,0 +1,35 @@ +{ stdenv +, fetchFromGitHub +, fetchpatch +, rustPlatform +, darwin +, libiconv +}: + +rustPlatform.buildRustPackage rec { + pname = "grex"; + version = "1.1.0"; + + cargoSha256 = "0kf2n2j7kfrfzid1h2gd0qf53fah0hpyrrlh2k5vrhd0panv3bwc"; + + src = fetchFromGitHub { + owner = "pemistahl"; + repo = pname; + rev = "v${version}"; + sha256 = "1viph7ki6f2akc5mpbgycacndmxnv088ybfji2bfdbi5jnpyavvs"; + }; + + buildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; + + doInstallCheck = true; + installCheckPhase = '' + $out/bin/grex --help > /dev/null + ''; + + meta = with stdenv.lib; { + 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 ]; + }; +} |