mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
2ab60c5d29
Changelog: https://github.com/pemistahl/grex/releases/tag/v1.4.4 Diff: https://github.com/pemistahl/grex/compare/v1.4.2...v1.4.4 Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
36 lines
912 B
Nix
36 lines
912 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, Security
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "grex";
|
|
version = "1.4.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pemistahl";
|
|
repo = "grex";
|
|
rev = "v${version}";
|
|
hash = "sha256-ef1eUxeCznIgXLoywwJmnLkTGdW1AmGwCin9DLU9kAs=";
|
|
};
|
|
|
|
cargoHash = "sha256-XLH+fS3fwRcWmVOzTjUacV010N37Oofs9Tbixdka1qY=";
|
|
|
|
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";
|
|
changelog = "https://github.com/pemistahl/grex/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
mainProgram = "grex";
|
|
maintainers = with maintainers; [ SuperSandro2000 mfrw ];
|
|
};
|
|
}
|