{ lib, stdenv , fetchFromGitHub , rustPlatform , Security }: rustPlatform.buildRustPackage rec { pname = "grex"; version = "1.4.2"; src = fetchFromGitHub { owner = "pemistahl"; repo = pname; rev = "v${version}"; sha256 = "sha256-kbrBnpoVeXSgmIqElpfAnoSutYwsnFaxFJpRsJPUE8k="; }; cargoSha256 = "sha256-WO8h5JUEiCpfsROQoRZj7I6em6REcJ2PfmoGN1zKRPg="; buildInputs = lib.optionals stdenv.isDarwin [ Security ]; doInstallCheck = true; installCheckPhase = '' $out/bin/grex --help > /dev/null ''; meta = with 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 ]; }; }